Part Number Hot Search : 
TA480XXF C74VC FMC2A HEF4016B 1N5474 12401 S151MK55 BU401
Product Description
Full Text Search
 

To Download STC89C53RC Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  stc89c51rc, stc89le51rc stc89c52rc, stc89le52rc STC89C53RC, stc89le53rc stc89c54rd+, stc89le54rd+ stc89c58rd+, stc89le58rd+ stc89c516rd+, stc89le516rd+ stc89c51rc / rd+ ??e?????e?????? 1??????? o o????? ? ?? ? www.mcu-memory.com support@dsp-memory.com update date: 2005-2-16 --- ????? --- 3???? --- ?1|o? ??a? b: stc89le516ad ? stc89le516x2 ??a? c: stc89c51rc / rd+ ??e???? isp (diy) ??a? a: ?a2??y????? 8051 3e?a?o ? 2????ee --- ?t?a? ??a? e: ?o?????ee?e????a?? , ?ta??????? ??a? d: isp demo( ?y?? ) ?t (*.hex) ??e?e- ??a? f: keil c51 ???????3??t?o????a?3?
p0 p1 p2 p3 p4 1280 ?? sram e 2 prom data flash ??y ?y???? ???1 8/16/32/64k ?? ? 2k - 8k ?? isp y?a? ???? 8 ?? 2ee??? + p4.0 ?a p4.3 ??????? i/o ??? uart ? ?? ? 3 ???? a/d 2???? 8051 ?|? ?1|o? ? 3???? ??? ? 0 - 90m ?? ????? ????? o 0.5 | a ? ???e??? o 2ma iap iap stc ? e o? ???? ? a hz flash 3e ?? ram y?y ?? ??? emi ? ?? 1 ?? ? ? p 4 ? i s p i a p eep rom y ?y ?? ?? ?? uart ?e ?? ? ? ? ?? ? ? a / d ??a ??y winbond ??a ??y philips ??a ??y atmel 5v 3v stc89c51 rc 0-80m 4k 512 ? ? ? ? ? ? 1k+ 2 1ch+ 8 4 3 w78e51 p89c51 stc89c52 rc 0-80m 8k 512 ? ? ? ? ? ? 1k+ 2 1ch+ 8 4 3 w78e52 p89c52 stc89c53 rc 0-80m 15k 512 ? ? ? ? ? ? 2 1ch+ 8 4 3 w78e54 p89c54 at89c55 stc89c54 rd+ 0-80m 16k 1280 ? ? ? ? ? ? 8k+ 2 1ch+ 8 4 3 w78e54 p89c54 at89c55 stc89c58 rd+ 0-80m 32k 1280 ? ? ? ? ? ? 8k+ 2 1ch+ 8 4 3 w78e58 p89c58 at89c51rc stc89c516 rd+ 0-80m 63k 1280 ? ? ? ? ? ? 2 1ch+ 8 4 3 w78e516 p89c51rd2 at89c51rd2 stc89le51 rc 0-80m 4k 512 ? ? ? ? ? ? 1k+ 2 1ch+ 8 4 3 w78le51 at89lv51 stc89le52 rc 0-80m 8k 512 ? ? ? ? ? ? 1k+ 2 1ch+ 8 4 3 w78le52 at89lv52 stc89le53 rc 0-80m 14k 512 ? ? ? ? ? ? 2 1ch+ 8 4 3 w78le54 at89lv55 stc89le54 rd+ 0-80m 16k 1280 ? ? ? ? ? ? 8k+ 2 1ch+ 8 4 3 w78le54 at89lv55 stc89le58 rd+ 0-80m 32k 1280 ? ? ? ? ? ? 8k+ 2 1ch+ 8 4 3 w78le58 at89lv51rc stc89le516rd+ 0-80m 63k 1280 ? ? ? ? ? ? 2 1ch+ 8 4 3 w78le516 p89lv51rd2 at89lv51rd2 stc89le516ad 0-90m 64k 512 ? ? ? 2 1ch+ 6 4 3 ? ea a / d a??2???? ? 8 a 8 ????? ? p 1 . 0 - p 1 . 7 ? ? 17 ???????? stc89le516x2 0-90m 64k 512 ? ? ? ? 2 1ch+ 6 4 3 ? ?|?????2?????e?? 8 0 5 1 ??e ? m c s - 5 1 ? ????3?????e? ? ??? s t c ????? o ???3? ? ye?? ? ?-e3e??1? , 2?t?te??? ? s t c 1???1????e?????? p l c c , p q f p e?ea , 3 . 3 v 1|??1???? ? 1 ??2??e? ? ?? ? 1|o??? ? ?1??1?ea??1|???e?? ? ?2?e??|2?? ? ? s t c 1?? s t c - i s p . e x e 1??????-e??a??a???? s t c ?1???????? , ??? 3??3 ? 5v: 5.5 - 3.8v, ??? 3.4v ? 3v: 3.6 - 2.4v, ??? 1.9v s t c 8 9 ??e??????e? i a p / i s p ?1??? ? 3?????? , 15 ???? a/d ? ??? ? ?? o ?? ?3???1?2a ???2a ?? ? ???2a? rc/rd+ ??e?a???y????1 ? ??a1?? ? ???? ?? ???o?t1?? ? ??e??a2????1 ? ?2? flash 2e?y?a 100,000 ??? ? stc89c51rc/rd+ ??e???? 3?3?????? ? ?t?a? ? ??3e?? isp/iap ???e?? ? ??e???e ? ?t?3??? ? 31??t?a? ? dip-40 ? plcc-44 ? pqfp-44 y??a ? plcc ? qfp e p4 ? ?? rc/rd+ ??e???? p4 ????a e8h, 2te 2 ?????a2??e?? ? p4.2/int3,p4.3/int2 ? stc89le516ad/x2 ??e???? p4 ????a c0h, ?t???a2??e?? ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e )
pqfp-44 a12/p2.4 p0.3/ad3 p4.3/int2 6 28 p4.1 rxd/p3.0 5 29 ea 12 13 14 15 1 6 17 18 19 20 21 22 wr/p3.6 p1.4 4 4 43 4 2 41 40 39 38 37 36 3 5 34 vss p1.0/t2 txd/p3.1 7 27 ale/prog p1.5 1 33 p0.4/ad4 rst 4 30 p0.7/ad7 p1.7 3 31 p0.6/ad6 p1.6 2 32 p0.5/ad5 t1/p3.5 11 23 p2.5/a13 int0/p3.2 8 26 psen int1/p3.3 9 25 p2.7/a15 t0/p3.4 10 24 p2.6/a14 rd/p3.7 p1.3 xtal2 p1.2 xtal1 p1.1/t2ex p4.0 p4.2/int3 a8/p2.0 vdd a9/p2.1 p0.0/ad0 a10/p2.2 p0.1/ad1 a11/p2.3 p0.2/ad2 stc89c51rc / rd+ ??e???? 1??? 1?1|??1 / ??a :rc/rd+ ??e????y? 6t ???? ? ??y??? 12 ? / ???? 1????1 : rc/rd+ ??e?a???y????1 ? ??a1?? ? ???? ?? ???o?t1?? ? a. ???1?3?????t1????1 (c ? ) ? b. ????????t1????1 (c ? ) c. ??1 ? a2?????t1????1 (c ? ) d. ?t?t1????1 e. a2????t1????1 f. ??e??????31???? ? 2??? 3v: 3.6 - 2.4v( ?a2? 24mhz, ???? 48mhz), 2.3-1.9v 2?a??ee iap 23y / 3 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) ?o?? 6 t ??e?? 5 v ???? , ?t??o? ??eea? 5 v ???? ? b ? ? 1|??1 a2?? ??? ?? ?? 8052 ??o? ??ee? ???? ?? ?? 8052 ??o? ??ee? a2?? ??? ?? ?? 8052 ??o? ??ee? ???? ?? ?? 8052 ??o? ??ee? iap / isp ?? 5.5v - 4.5v 0-24mhz 0-24mhz 0-12mhz 0-48mhz 0-24mhz 0-40mhz 0-40mhz 0-20mhz 0-80mhz 0-40mhz ? ? 3 ? 23y 5.5v - 3.8v 0-20mhz 0-20mhz 0-10mhz 0-40mhz 0-20mhz 0-33mhz 0-33mhz 0-16.5m 0-66mhz 0-33mhz ? ? 3 ? 23y 5.5v - 3.6v 0-18mhz 0-18mhz 0-9mhz 0-36mhz 0-18mhz 0-24mhz 0-24mhz 0-12mhz 0-48mhz 0-24mhz ? ? 3 ? 23y 5.5v - 3.4v 0-12mhz 0-12mhz 0-6mhz 0-24mhz 0-12mhz 0-20mhz 0-20mhz 0-10mhz 0-40mhz 0-20mhz ? ? 2?a3 / 23y ? 1??? / ??? o 1. ?o????? / ?????1? keil c51 ?e : device ?????? intel8052 ???t?o??? 2. ea???a1|?????? ? sfr ? ? ? sbit ? ?|???? 3. ???e? ? data ? , ? ? equ ? ?|?? 1?a????a??? o 1. ?o???a?????1? 2. ??a????a?????a?????1|? 3. ea???a1|?? isp ?a????1??? 4.stc8051 ?a???2??3? ? ??? 1950 txd/p3.1 11 30 ale/prog dip-40 rst 9 32 p0.7/ad7 p1.2 3 38 p0.1/ad1 p1.3 4 37 p0.2/ad2 p1.4 5 36 p0.3/ad3 p1.5 6 35 p0.4/ad4 p1.6 7 34 p0.5/ad5 p1.7 8 33 p0.6/ad6 rxd/p3.0 10 31 ea int0/p3.2 12 29 psen int1/p3.3 13 28 p2.7/a15 t0/p3.4 14 27 p2.6/a14 t1/p3.5 15 26 p2.5/a13 wr/p3.6 16 25 p2.4/a12 rd/p3.7 17 24 p2.3/a11 xtal2 18 23 p2.2/a10 xtal1 19 22 p2.1/a9 vss 20 21 p2.0/a8 t2/p1. 0 1 40 vcc t2ex/p1.1 2 39 p0.0/ad0 wr/p3.6 p1.4 rd/p3.7 p1.3 xtal2 p1.2 a12/p2.4 p0.3/ad3 int0/p3.2 14 32 psen int1/p3.3 15 31 p2.7/a15 18 19 20 21 22 23 24 25 26 27 28 t1/p3.5 17 29 p2.5/a13 t0/p3.4 16 30 p2.6/a14 a11/p2.3 p0.2/ad2 6 5 4 3 2 1 44 43 42 41 40 txd/p3.1 13 33 ale/prog p4.3/int2 12 34 p4.1 rxd/p3.0 11 35 ea p4.0 p4.2/int3 a8/p2.0 vdd a9/p2.1 p0.0/ad0 a10/p2.2 p0.1/ad1 xtal1 p1.1/t2ex vss p1.0/t2 rst 10 36 p0.7/ad7 p1.5 7 39 p0.4/ad4 p1.6 8 38 p0.5/ad5 p1.7 9 37 p0.6/ad6 plcc-44
o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 4 stc ???? isp 3 ?e|??a (89c51rc/rd+ ??e ) vcc vin power on c6 c5 104 10uf 1k vcc vcc 10k 10 | f c2 c1 r1 x1 1 t2/p1.0 vcc 40 2 t2ex/p1 . 1 p0.0/ad0 39 3 p1.2 p0.1/ad1 38 4 p1.3 p0.2/ad2 37 5 p1.4 p0.3/ad3 36 6 p1.5 p0.4/ad4 35 7 p1.6 p0.5/ad5 34 8 p1.7 p0.6/ad6 33 9 rst p0.7/ad7 32 10 rxd/p3.0 ea 31 11 txd/p3.1 ale/prog 30 12 int0/p3.2 psen 29 1 3 int1/p3.3 p2.7/a15 28 14 t0/p3.4 p2.6/a14 27 15 t1/p3.5 p2.5/a13 26 16 wr/p3.6 p2.4/a12 25 17 rd/p3.7 p2.3/a11 24 18 xtal2 p2.2/a10 23 19 xtal1 p2.1/a9 22 20 vss p2.0/a8 21 m c u _ t x d ( p 3 . 1 ) m c u _ r x d ( p 3 . 0 ) sw1 u1 2. ?e???y c1, ??e?? ; 1?????a : crystal ( ??? ) c1( ???2?? ) c2(47pf - 15pf) r1( 2?? ) c3 r2 6mhz don't use 47 pf, 100pf don't use 10uf 10k/8.2k 11.0592mhz don't use 30pf, 33 pf, 47 pf don't use 10uf 10k/8.2k 22.1184mhz don't use 27pf, 33 pf, 47 pf don't use 10uf-22uf 15k,10k,8.2k 24mhz don't use 27pf, 33 pf, 47 pf don't use 10uf-22uf 15k,10k,8.2k 33mhz( don't use) don't use 15pf 15k - 6.8k 10uf-22uf 15k,10k,8.2k 40mhz( don't use) don't use 15pf 15k - 6.8k 10uf-22uf 15k,10k,8.2k 1?????a : 1. y??? , ?y?a 10uf, ??a 10k; 2.rc/rd+ ??e???? reset ???2??? 3. ?y c2 ?? 47 ?? 33pf(<24mhz),30,22,15pf,33m ?? 15pf;6m ??a 47pf,100pf-180pf; ?a-? , ?e??? 10k ? 4. ?e1? 24m ?? , ??????????? , a2???????a (<24mhz), ?a? emi ?e?o? ; 5. ?1?a2?????a? 33m ?? , o? r1 ? (15k ),33mhz ?? , ??e????? ? 7. ??????? ( ?2????????? ) ?t?? ( ?? stc-isp 1???t?a??? ): 1? /ea( /ea 1????2??-? vcc ) : 1. ?a2?2???- , ?a2??-? vcc, 2. ?a2??a-?? , ?????o???? ?????o??????2??a??ee3e ; ?a2??a??ee3e 47pf 3 5 8 r 2 i n r 2 o u t 9 stc ???????3??a ? stc rs-232 a??? s 0 . 1 u f 2 v + g n d 1 5 1 c 1 + v c c 1 6 v c c 3 c 1 - t 1 o u t 1 4 5 c 2 - r 1 o u t 1 2 6 v - t 1 i n 1 1 7 t 2 o u t t 2 i n 1 0 s t c 2 3 2 , s t c 3 2 3 2 p c _ r x d ( c o m p i n 2 ) 4 c 2 + r 1 i n 1 3 p c _ t x d ( c o m p i n 3 ) g n d pc / ??? ?? 2 --- 3?3??? ( 3????? ) ? ?? isp ???e??3e ? ?t?3??? ? ?t?a? ??a??3?? stc isp ??3e?a??1?? , ??? 50 ?a 1?????3e1??????1? 1. ???? 11.0592m -22.1184mhz ??? 6. ???? xtal2 1?????? 120 - 160 ??????????1?? , ?1??a? xtal1 1?? ??? c1 ??? ? 2?????? ? 5v ???? 24m ??a ,3.3v ???? 16m ??a , ???? 1/2gain
o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 5 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 stc89c51rc/rd+ ??e???? isp 3 ?- vaa?? ????31???? ??????????? ? ??e? ??e? ? ??????ee??3 isp ???3e ?2a p3.0/rxd e??eo??a???? ?a????3e????3e?? e ??????3e?? ? ??ee??3e ?t a2?????? ? ???1??? ? ????2????ee isp 3e pc ?????????t?e??a??? ? ? ???????????? ?a2??ee????a??3e2?31| ( ?o??1???a???? ) 1. ?? ?????? stc-isp ?????t ay?? ? ????e?y??? ?y??? stc-isp-v2.5 2. ????????? ( ?a??? ) ? isp ?t? v2.5c, ?a???y???ay ? e??2????a . 3. ??ee??3e ? ?? 40m/80mhz, ? isp ?a??3e?????t???? 33m/66mhz 4. y??? plcc-44,pqfp-44 a dip-40 ?a?? ???1y3 ? ?3????2??? ? ?a ??2?31| ? ??? xtal1 ????y? ? xtal2 ????y??? 47pf ?? ? 5. ???????2???e isp y?a? ? ???ay?? pc ??? stc-isp ?????t 6. ?????? isp ?????t stc-isp-v2.9 2a?????e?1|? ? ??-2a? ? 7. ?????? isp ?????t stc-isp-v2.6 2a??2?a? ? e? ?a2??ee????a??3e2?31| ( ?????o???3? ) 1. ??????ea2????1 ? e2?????e? 2. ?????? p3.0/rxd ? p3.1/txd 3y?? rs-232 a???a ? ?1?? rs-485 ??a ? ea???????a ? pc ?????????t stc-isp-v2.5 ? ?? www.mcu-memory.com ?a?? , ?o? 1? ? ????1?2??e?? 8. ea??????? ( ?a??? ) ? isp ?t? v2.7c , ???e??1???? ? ?a?a????e???ee isp 3e??1y3??a ? ??a???e?? ? ???ay ? ? ?a isp 3e??2aa2?a?a??3e ??????ee isp 3e ? ?2ae?t?a ???? ? ??? ??? ms - ??? ms
3??1|o? ---- stc89c51rc / rd+ ??e???? 1. ????? o ?e1|o? 0.5ua, ?a2??e????e? ? ?e????o ? ?e??ee?-3e 3????1?? ---- stc89c51rc / rd+ ??e???? 1. i/o ? ?? / ?3???-1y?a| ? o????? i/o ??? , ???? i/o ?e?? vcc/ ?? gnd ?t??1??? ? 2. ?? ?????2????1????3?-1y?a| ? o?????????? 3. ? 2. ???e??? o ?e1|o? 2ma 3. ?y31??? o ?e1|o? 4ma - 7ma ?????2????a?-1y?a| ? o??????2????? 4. ???1 ?????2?????1?a?-1y?a| ? ??ao?t1?? ? ??e??a2????1 5. ????a ?????2??????a?-1y?a| ? o?????????a2????? , stc89c51rc/rd+ ??e?????a???????? ? ???a??????a?a max810/stc810,stc6344, stc6345,813l,706p ? 2?? r/c ??? ? 10uf ?y /10k ? ,22uf/8.2k ? ? 6. ???1 ? 2??a????? 5v: 6v - 3.4v 3v: 4v - 1.9v ?????????a2?????? (emi)--- y??? mnemonic add name 7 6 5 4 3 2 1 0 reset value auxr 8eh auxiliary register 0 - - - - - - extram aleoff xxxx,xx00 rc/rd+ ??e 8051 ???? ??1 ram 1????1 ale ?3? ?a1|????? ??e ???1 ale e?o??3? ( |??y1?2??? , ????? ): mov auxr, #00000001b; aleoff ???? ? 1 ? , ???1 ale ??3? 2. a2???a???? ? 6t ??? : ?3? 8051 ?a???????? 12 ? ? ??? stc ??? ??e 8051 ????? isp ?a?3e?a???? ? ? 6t ??? ? ???????? 6 ? ?? ?? ??????a2???a????? ? ee???????????a????? 3. ?????2?????????????? : ? isp ?a?3e?? oscdn ?a 1/2 gain ??ee????????????2????a????? ,5v ????a2?????a <24mhz ? 3v ? ???a2?????a <16mhz ? ?? oscdn ?a 1/2 gain ? 1. ???1 ale ?e?o??3? : 6 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e )
?a1|?????3?? sfr mapping stc89c51rc, stc89c52rc, STC89C53RC, stc89c54rd+,stc89c58rd+,stc89c516rd+ stc89le51rc,stc89le52rc,stc89le53rc,stc89le54rd+,stc89le58rd+,stc89le516rd+ bit addressable non bit addressable 0/8 1/9 2/a 3/b 4/c 5/d 6/e 7/f f8h ffh f0h b 0000,0000 f7h e8h p4 xxxx,1111 efh e0h acc 0000,0000 wdt_contr xx00,0000 isp_data 1111,1111 isp_addrh 0000,0000 isp_addrl 0000,0000 isp_cmd 1111,1000 isp_trig xxxx,xxxx isp_contr 000x,x000 e7h d8h dfh d0h psw 0000,0000 d7h c8h t2con 0000,0000 t2mod xxxx,xx00 rcap2l 0000,0000 rcap2h 0000,0000 tl2 0000,0000 th2 0000,0000 cfh c0h xicon 0000,0000 c7h b8h ip xx00,0000 saden 0000,0000 bfh b0h p3 1111,1111 iph 0000,0000 b7h a8h ie 0000,0000 saddr 0000,0000 afh a0h p2 1111,1111 auxr1 xxxx,0xx0 a7h 98h scon 0000,0000 sbuf xxxx,xxxx 9fh 90h p1 1111,1111 97h 88h tcon 0000,0000 tmod 0000,0000 tl0 0000,0000 tl1 0000,0000 th0 0000,0000 th1 0000,0000 auxr xxxx,xx00 8fh 80h p0 1111,1111 sp 0000,0111 dpl 0000,0000 dph 0000,0000 pcon 0xx1,0000 87h 0/8 1/9 2/a 3/b 4/c 5/d 6/e 7/f o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 7
rc/rd+ ??e 8051 ?????o??a1|????? c51 core sfrs mnemonic add name 7 6 5 4 3 2 1 0 reset value acc e0h accumulator 0000,0000 b f0h b register 0000,0000 psw d0h program status word cy ac f0 rs1 rs0 ov - p 0000,0000 sp 81h stack pointer 0000,0111 dpl 82h data pointer low byte 0000,0000 dph 83h data pointer high byte 0000,0000 rc/rd+ ??e 8051 ??????31?a1|????? system management sfrs mnemonic add name 7 6 5 4 3 2 1 0 reset value pcon 87h power control smod - - pof gf1 gf0 pd idl 0xx1,0000 auxr 8eh auxiliary register 0 - - - - - - extram aleoff xxxx,xx00 auxr1 a2h auxiliary register 1 - - - - gf2 - - dps xxxx,0xx0 rc/rd+ ??e 8051 ???? ?e?? ?a1|????? interrupt sfrs mnemonic add name 7 6 5 4 3 2 1 0 reset value ie a8h interrupt enable ea - et2 es et1 ex1 et0 ex0 0000,0000 ip b8h interrupt priority low - - pt2 ps pt1 px1 pt0 px0 xx00,0000 iph b7h interrupt priority high px3h px2h pt2h psh pt1h px1h pt0h px0h 0000,0000 xicon c0h auxiliary interrupt control px3 ex3 ie3 it3 px2 ex2 ie2 it2 0000,0000 2?? o stc89le516ad ??e??????e (xicon,px3h,px2h), ?a p4.2/p4.3 ?t?e?? . 2?? o stc89le516ad / 89le516x2 ??e??????e extram ?????? . rc/rd+ ??e 8051 ???? i/o ? ?a1|????? port sfrs 2?? o stc89le516ad / 89le516x2 ??e???? p4 ????a c0h, ??2?? e8h. mnemonic add name 7 6 5 4 3 2 1 0 reset value p0 80h 8-bit port 0 p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 1111,1111 p1 90h 8-bit port 1 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1.0 1111,1111 p2 a0h 8-bit port 2 p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 1111,1111 p3 b0h 8-bit port 3 p3.7 p3.6 p3.5 p3.4 p3.3 p3.2 p3.1 p3.0 1111,1111 p4 e8h 4-bit port 4 - - - - p4.3 p4.2 p4.1 p4.0 xxxx,1111 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 8
mnemonic add name 7 6 5 4 3 2 1 0 reset value scon 98h serial control sm0/fe sm1 sm2 ren tb8 rb8 ti ri 0000,0000 sbuf 99h serial data buffer xxxx,xxxx saden b9h slave address mask 0000,0000 saddr a9h slave address 0000,0000 rc/rd+ ??e 8051 ???? ?? ?a1|????? timer sfrs mnemonic add name 7 6 5 4 3 2 1 0 reset value tcon 88h timer / counter 0 and 1 control tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 0000,0000 tmod 89h timer / counter 0 and 1 modes gate gate1 c/t# c/t1# m1 m1_1 m0 m1_0 gate gate0 c/t# c/t0# m1 m0_1 m0 m0_0 0000,0000 tl0 8ah timer / counter 0 low byte 0000,0000 th0 8ch timer / counter 0 high byte 0000,0000 tl1 8bh timer / counter 1 low byte 0000,0000 th1 8dh timer / counter 1 high byte 0000,0000 t2con c8h timer / counter 2 control tf2 exf2 rclk tclk exen2 tr2 c/t2# cp/rl2# 0000,0000 t2mod c9h timer / counter 2 mode - - - - - - t2oe dcen xxxx,xx00 rcap2l cah timer / counter 2 reload/capture low byte 0000,0000 rcap2h cbh timer / counter 2 reload/capture high byte 0000,0000 tl2 cch timer / counter 2 low byte 0000,0000 th2 cdh timer / counter 2 high byte 0000,0000 rc/rd+ ??e 8051 ???? isp/iap ?a1|????? isp/iap sfrs mnemonic add name 7 6 5 4 3 2 1 0 reset value wdt_contr e1h watch-dog-timer control register - - en_wdt clr_wdt idle_wdt ps2 ps1 ps0 xx00,0000 mnemonic add name 7 6 5 4 3 2 1 0 reset value isp_data e2h isp/iap flash data register 1111,1111 isp_addrh e3h isp/iap flash address high 0000,0000 isp_addrl e4h isp/iap flash address low 0000,0000 isp_cmd e5h isp/iap flash command register - - - - - ms2 ms1 ms0 xxxx,x000 isp_trig e6h isp/iap flash command trigger xxxx,xxxx isp_contr e7h isp/iap control register ispen swbs swrst - - wt2 wt1 wt0 000x,x000 rc/rd+ ??e 8051 ???? ?ee? ?a1|????? serial i/o port sfrs rc/rd+ ??e 8051 ???? ???1?? ?a1|????? watch dog timer sfrs o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 9
?eo? : stc89c51rc,stc89c52rc,STC89C53RC , stc89le51rc,stc89le52rc,stc89le53rc stc89c54rd+,stc89c58rd+,stc89c516rd+ ,stc89le54rd+,stc89le58rd+,stc89le516rd+ ?? 89c51,89c52 ??e??????2? ram ??e 128(89c51)/256(89c52) 1????1? (1). ? 128 ????2? ram ? ?? :00h-7fh ? , ??????????? , (data/idata) (2). ?? 128 ????2? ram ? ?? :80h-ffh ? , ???????? ( ?? 89c51 ??e ), (idata) (3). ?a1|????? sfr ? ?? :80h-ffh ? , ??????? , (data) ?a1|????? sfr o?? 128 ????2? ram ? 1y??????? ? , ?3? 8051 ??e?????? e 128-256 ?? ram 1????1? ? ??????a stc 1????|1?????o? ? ??e??????2????? ram ? stc89c58rd+ ??e??????1? 1024 ???? ram ? stc89c52rc ??e??????1? 256 ???? ram ? rc/rd+ ??e 8051 ???? ??1 ram 1????1 ale ?3? ?a1|????? ??e symbol ?o? function 1|? extram internal/external ram access ?2? / a2? ram ?? 0: ?2???1? ext_ram ???? . rd+ ??e???? ? 00h ? 3ffh ??a (1024 ?? ), 1? movx @dptr ????? , 3?1y 400h ??????? ???a2?y?y?? ? o? 400h ??a ?? movx @ri ????? 00h ? ffh ??a rc ??e???? ? 00h ? ffh ??a (256 ?? ), 1? movx @dptr ????? , 3?1y 100h ??????? ???a2?y?y?? ? o? 100h ??a ?? movx @ri ????? 00h ? ffh ??a 1: external data memory access. a2?y?y????? , ???1???2???1 ram ? ? movx @dptr / movx @ri ? 1???? 8052 ???? aleoff disable/enable ale. 0: ale is emitted at a constant rate of 1/3 the oscillator frequency in 6 clock mode, 1/6 fosc in 12 clock mode ale ???3?1?? 1/6 ????ae?o?? 12 ???? , ? 6 ?????3?1? ? 1/3 ????ae?o? . 1: ale is active only during a movx or movc instruction. ale ??????ee movx or movc ???2??3?e?o? , o?|? o ??????3??a??? emi. stc89c51rc/rd+ ??e??????1 ram ?1? mnemonic add name 7 6 5 4 3 2 1 0 reset value auxr 8eh auxiliary register 0 - - - - - - extram aleoff xxxx,xx00 ?a o stc89le516ad,stc89le516x2 ??e?t extram ?????? , ??e aleoff ?????? ? stc89le516ad/x2 ??e? movx a, @ri / movx @ri, a ???1????2???1? extram, ? movx a, @dptr / movx @dptr, a ???1???a2? ram. o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 10 stc89c51rc/rd+ ??e??????1 ram ? ???1
|??y1?2??? ? ?? ? : ???2???1? extram ; ea???a1|?????? ( ???? ) auxr data 8eh; ???? auxr equ 8eh ?? mov auxr, #00000000b; extram ?????a ? 0 ? , ?????????????a ? 0 ? . ; movx a, @dptr / movx @dptr, a ???????2???1? extram ;rd+ ??e?a (00h - 3ffh, 12 1024 ?? ) ;rc ??e?a (00h - ffh, 12 256 ?? ) ; movx a, @ri / movx a, @ri ?????????2???1? extram ; 1????? rd+ ??e ??????2???1? extram(00h - ffh, 12 256 ?? ) ; ee????2???1? extram mov dptr, #address mov a, #value movx @dptr, a ; ?e????2???1? extram mov dptr, #address movx a, @dptr rd+ ??e ; ?1? #address < 400h ? ?? extram ???a ? 0 ? ? ???????2? ? a??-??a2?? ? extram ; ?1? #address >= 400h ? ???????a2???1? ram ? i/o ???? ? 400h--ffffh ? rc ??e ; ?1? #address < 100h ? ?? extram ???a ? 0 ? ? ???????2? ? a??-??a2?? ? extram ; ?1? #address >= 100h ? ???????a2???1? ram ? i/o ???? ? 100h--ffffh ? ???1???2???1? extram , ?3?? mov auxr, #00000010b; extram ?????????a ? 1 ? , ???1?? extram, ?3?? ee?????3?aa2???1? i/o ????????????? ram ?? , e???2???1? extram a??-???e3?? ? ????????a ? 1 ? , ???1????2???1? extram ???? . ?? : ??2???? auxr ????????? movx @dptr ???????2???1? extram, 3?1y? ram ???? , ??????a??a . ?1???3a?? sram, ???1??????e? 1024/256 ?? , ?? ????? sram ? , ?? stc62wv256,is62c256,ut6264 ? . a???? movx a, @ri / movx @ri, a ???????2???1? extram, ?a?????? 256 ?????1 extram, ?? ?o???????y ? ? stc89le516ad/x2 ??e movx a, @ri / movx @ri, a ??????1?? ??2???1? extram, movx a, @dptr / movx @dptr, a ???1???a2? ram. |??y1?2??? ? c ??? ? : /* ???2???1? extram */ /* rd+ ??e?a (00h - 3ffh, 12 1024 ????1? extram) */ /* rc ??e?a (00h - ffh, 12 256 ????1? extram) */ /* ea???a1|?????? (c ????? ) */ sfr auxr = 0x8e /* ?1?2?e?? auxr ?2??? auxr */ auxr = 0x00; /* 0000,0000 extram ???? 0, ?????????????a 0 */ unsigned char xdata sum, loop_counter, test_array[128]; /* ?????3 xdata ????????2???1? extram */ o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 11
/* ee????2???1? extram */ sum = 0; loop_counter = 128; test_array[0] = 5; sum = test_array[0]; /* rd+ ??e : ?1? #address < 400h ? ?? extram ???a ? 0 ? ? ???????2? ? a??- ??a2??? extram ?1? #address>=400h ? ???????a2???1? ram ? i/o ???? ? 400h-ffffh ? rc ??e : ?1? #address < 100h ? ?? extram ???a ? 0 ? ? ???????2? ? a??- ??a2??? extram ?1? #address>=100h ? ??????a2???1? ram ? i/o ???? ? 100h--ffffh ? * / ???1???2???1? extram , ?3?? auxr = 0x02; /* 0000,0010, extram ???a ? 1 ? , ???1?? extram, ?3?? */ ee?????3?aa2???1? i/o ????????????? ram ?? , e???2???1? extram a??-?e3?? ? ????????a ? 1 ? , ???1????2???1? extram ???? . o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 12 auxr ???e???? ?????e ? ????? ? mov auxr, #data ? e , ??2?a?o???2? ? ? ? ? ? ??? ? /* ?e????2???1? extram */ ?a??2????? ? ?? ? ?3??y?2?? ? ?o???2? ? ? ? ? ? ??? ? ? ??2?? ea?e1? ?
?e?? rc/rd+ ??e 8051 ???? ?e?? ?a1|????? interrupt sfrs mnemonic add name 7 6 5 4 3 2 1 0 reset value ie a8h interrupt enable ea - et2 es et1 ex1 et0 ex0 0000,0000 ip b8h interrupt priority low - - pt2 ps pt1 px1 pt0 px0 xx00,0000 iph b7h interrupt priority high px3h px2h pt2h psh pt1h px1h pt0h px0h 0000,0000 xicon c0h auxiliary interrupt control px3 ex3 ie3 it3 px2 ex2 ie2 it2 0000,0000 ?e????? 8052 ???y ? ??????a 4 ?? ? ??? 2 ??a2??e?? int2/p4.3, int3/p4.2 ? interrupt source ?e??? vector address ?e?? ???? polling sequence ?e?? 2??e ?e?? ?????? ???? 0 ?? ???? 1 ???? 2 ???? 3 ??? interrupt request ?e????? /int0 0003h 0 ( ??? ) px0h,px0 0,0 0,1 1,0 1,1 ie0 timer 0 000bh 1 pt0h,pt0 0,0 0,1 1,0 1,1 tf0 /int1 0013h 2 px1h,px1 0,0 0,1 1,0 1,1 ie1 timer 1 001bh 3 pt1h,pt1 0,0 0,1 1,0 1,1 if1 uart 0023h 4 psh, ps 0,0 0,1 1,0 1,1 ri + ti timer 2 002bh 5 pt2h,pt2 0,0 0,1 1,0 1,1 tf2 + exf2 /int2 0033h 6 px2h,px2 0,0 0,1 1,0 1,1 ie2 /int3 003bh 7 ( ?? ) px3h,px3 0,0 0,1 1,0 1,1 ie3 name function px3 external interrupt 3 priority high if set ex3 external interrupt 3 enable if set ie3 ie3 is set/cleared automatically by hardware when interrupt is detected/serviced it3 external interrupt 3 is falling-edge/low-level triggered when this bit is set/cleared by software px2 external interrupt 2 priority high if set ex2 external interrupt 2 enable if set ie2 ie2 is set/cleared automatically by hardware when interrupt is detected/serviced it2 external interrupt 2 is falling-edge/low-level triggered when this bit is set/cleared by software pxh3 external interrupt 3 priority highest if set pxh2 external interrupt 2 priority highest if set o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 13
mnemonic add name 7 6 5 4 3 2 1 0 reset value auxr 8eh auxiliary register 0 - - - - - - extram aleoff xxxx,xx00 ???????????3????? (emi)--- y??? 1. ???1 ale e?o??3? ? ?eo? : stc89c51rc,stc89c52rc,STC89C53RC, stc89le51rc,stc89le52rc,stc89le53rc stc89c54rd+,stc89c58rd+,stc89c516rd+ ,stc89le54rd+,stc89le58rd+,stc89le516rd+ stc89le516ad / x2 ??e ? o ???e?????t extram ?????? ? rc/rd+ ??e 8051 ???? ??1 ram 1????1 ale ?3? ?a1|????? ??e p4 ? rc/rd+ ??e 8051 ???? i/o ? ?a1|????? port sfrs mnemonic add name 7 6 5 4 3 2 1 0 reset value p0 80h 8-bit port 0 p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 1111,1111 p1 90h 8-bit port 1 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1.0 1111,1111 p2 a0h 8-bit port 2 p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 1111,1111 p3 b0h 8-bit port 3 p3.7 p3.6 p3.5 p3.4 p3.3 p3.2 p3.1 p3.0 1111,1111 p4 e8h 4-bit port 4 - - - - p4.3 p4.2 p4.1 p4.0 xxxx,1111 ????? o p4 data 0e8h ; or p4 equ 0e8h mov a, p4 ; read p4 status to accumulator. mov p4, #0ah ; output data ? a ? through p4.0 - p4.3 orl p4, #00000001b ; p4.0 = 1 anl p4, #11111110b ; p4.0 = 0 mov p4, #0ah ; output data ? a ? through p4.0 - p4.3 ???1 ale e?o??3? ( |??y1?2??? ,c ??? ): sfr auxr = 0x8e; /* ? auxr ????|??? */ auxr = 0x01; /* aleoff ???? 1, ???1 ale e?o??3? , y??3? emi e?? , ???o?a 0,ale e?o??y3??3? */ ???1 ale e?o??3? ( |??y1?2??? , ????? ): auxr equ 8eh ; ? auxr data 8eh mov auxr, #00000001b; aleoff ???? ? 1 ? , ???1 ale e?o??3? , y???3? emi e?? 2. a2???a???? ? 6t ??? : ?3? 8051 ?a???????? 12 ? ? ??? stc ?????e 8051 ????? isp ?a?3e?a???? ? ? 6t ??? ? ???????? 6 ? ?? ????????a2?? ?a????? ? ee???????????a????? 3. ?????2?????????????? : ? isp ?a?3e?? oscdn ?a 1/2 gain ?? ee????????????2????a????? , ??a2?????a???2?a?? 24mhz ? c ??? : o stc89le516ad,stc89le516x2,stc89le58ad,stc89le54ad ? p4 ???? c0h ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 14 sfr p4 = 0xe8; c ????e? p4 ??a1|?????|??
??y?y???? dptr0,dptr1 ?1? ?eo? : stc89c51rc,stc89c52rc,STC89C53RC , stc89le51rc,stc89le52rc,stc89le53rc stc89c54rd+,stc89c58rd+,stc89c516rd+ ,stc89le54rd+,stc89le58rd+,stc89le516rd+ stc89le516ad,stc89le516x2 rc/rd+/ad/x2 ??e 8051 ???? ??y?y???? ?a1|????? symbol ?o? function 1|? gf2 general purpose user-defined flag. ?1|???????? dps dptr registers select bit. dptr ?????????? 0: dptr0 is selected dptr0 ????? 1: dptr1 is selected dptr1 ????? ???e????e??? 16-bit y???? ,dptr0,dptr1. ? dps ???????a 0 , ???? dptr0, ? dps ?? ?????a 1 , ???? dptr1. auxr1 ?a1|????? , ?? a2h ??a , ???e???2???2?????????? . ? dps ???? bit0, 1?? auxr1 ????? inc ??? ,dps ????a , 0 ?3 1 ? 1 ?3 0, ??????y????????e?? . |??y1?2??? : ; ea???a1|??????? auxr1 data 0a2h mov auxr1, #0 ; ? dps ?a 0,dptr0 ee mov dptr, #1ffh ; ?? dptr0 ?a 1ffh mov a, #55h movx @dptr, a ; ?? 1ffh ??a???a 55h mov dptr, #2ffh ; ?? dptr0 ?a 2ffh mov a, #0aah movx @dptr, a ; ?? 2ffh ??a???a 0aah inc auxr1 ; ? dps ?a 1,dptr1 ee mov dptr, #1ffh ; ?? dptr1 ?a 1ffh movx a, @dptr ; ? dptr1 y???????? 1ffh ??a??y , ??? a ??a 55h. inc auxr1 ; ? dps ?a 0,dptr0 ee movx a, @dptr ; ? dptr0 y???????? 2ffh ??a??y , ??? a ??a 0aah. inc auxr1 ; ? dps ?a 1,dptr1 ee movx a, @dptr ; ? dptr1 y???????? 1ffh ??a??y , ??? a ??a 55h. inc auxr1 ; ? dps ?a 0,dptr0 ee movx a, @dptr ; ? dptr0 y???????? 2ffh ??a??y , ??? a ??a 0aah. ?a? : ? philips 1?????a mnemonic add name 7 6 5 4 3 2 1 0 reset value auxr1 a2h auxiliary register 1 - - - - gf2 - - dps xxxx,0xx0 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 15
???1|? ?eo? : stc89c51rc,stc89c52rc,STC89C53RC, stc89le51rc,stc89le52rc,stc89le53rc stc89c54rd+,stc89c58rd+,stc89c516rd+ ,stc89le54rd+,stc89le58rd+,stc89le516rd+ o?????3? , ?????o?21o??? , ??2?a1y?e?? , ?3?????o??t?? rc/rd+ ??e 8051 ???? ???1?? ?a1|????? watch dog timer sfr symbol ?o? function 1|? en_wdt enable wdt bit. when set, wdt is started ???1?e?? , ????a ? 1 ? ? ???1??? ? clr_wdt wdt clear bit. when set, wdt will recount. hardware will automatically clear this bit. ???1?? ? 0 ? ?? , ??a ? 1 ? ? ???1????ea??y ? 2?t?????? ? 0 ? ??? ? idle_wdt when set, wdt is enabled in idle mode. when clear, wdt is disabled in idle mode ???1 ? idle ? ????? , ????a ? 1 ? , ???1??? ? ???e??? ? ??y ??? ? 0 ? ???? , ???1??? ? ???e??? ? 2???y ps2, ps1, ps0 pre-scale value of watchdog timer is shown as the bellowed table: ???1?????? ? ??a?? the wdt period is determined by the following equation ???1?3??????? ???1?3??? = (n x pre-scale x 32768) / oscillator frequency n = 12, ?? 12 clock mode , n = 6, ?? 6 clock mode ??a 12mhz, 12 ???? ???1?3??? = (12 x pre-scale x 32768) / 12000000 = pre-scale x 393216 / 12000000 mnemonic add name 7 6 5 4 3 2 1 0 reset value wdt_contr e1h watch-dog-timer control register - - en_wdt clr_wdt idle_wdt ps2 ps1 ps0 xx00,0000 ps2 ps1 ps0 pre-scale ??? wdt period @20mhz and 12 clocks mode 0 0 0 2 39.3 ms 0 0 1 4 78.6 ms 0 1 0 8 157.3 ms 0 1 1 16 314.6 ms 1 0 0 32 629.1 ms 1 0 1 64 1.25s 1 1 0 128 2.5s 1 1 1 256 5s ps2 ps1 ps0 pre-scale ??? wdt period @12mhz and 12 clocks mode 0 0 0 2 65.5 ms 0 0 1 4 131.0 ms 0 1 0 8 262.1 ms 0 1 1 16 524.2 ms 1 0 0 32 1.0485s 1 0 1 64 2.0971s 1 1 0 128 4.1943s 1 1 1 256 8.3886s o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 16
??a 11.0592mhz, 12 ???? ???1?3??? = ( 1 2 x p r e - s c a l e x 3 2 7 6 8 ) / 1 1 0 5 9 2 0 0 = p r e - s c a l e x 3 9 3 2 1 6 / 1 1 0 5 9 2 0 0 ps2 ps1 ps0 pre-scale ??? wdt period @11.0592mhz and 12 clocks mode 0 0 0 2 71.1 ms 0 0 1 4 142.2 ms 0 1 0 8 284.4 ms 0 1 1 16 568.8 ms 1 0 0 32 1.1377s 1 0 1 64 2.2755s 1 1 0 128 4.5511s 1 1 1 256 9.1022s ?????3e?y wdt_contr data 0e1h ; ??? wdt_contr equ 0e1h ; ????? org 0000h ljmp initial ?- org 0060h initial: mov wdt_contr, #00110100b; load initial value ???1??????????3??? ; en_wdt = 1, clr_wdt = 1, idle_wdt = 0, ps2 = 1, ps1 = 0, ps0 = 0 ?- main_loop: lcall display_loop lcall keyboard_loop ?- mov wdt_contr, #00110100b ; ?11 , 2?a? orl wdt_contr, #00010000b ?- ljmp main_loop c ???3e?y #include sfr wdt_contr = 0xe1; void main() { ?- while(1){ wdt_contr = 0x34; /* 0011,0100 en_wdt = 1,clr_wdt = 1, idle_wdt = 0, ps2 = 1, ps1 = 0, ps0 = 0 */ display(); keyboard(); ?- wdt_contr = 0x34; /* ?11 , 2?a? wdt_contr = wdt_contr | 0x10; */ } } o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 17
stc 89c51rc/rd+ ??e???????3?3?1? --- ?????a??a?????????2? ? 2??3? stc89 ??e?????2????e???3?3 ? isp ? ?e? ? isp ?o?|? o ?1oa?3 ? ? ?????????3????a?? / ?a???3e ? ???te?????????2o??2??2e?a ? ? ??3???3e?a??a????????2? ? ee?3ee??e?2?????2 ? ??? ? ? ??2????e3???? ? ??e??ea2??t?y????? ? ????3e???a??????? ????ee?1?12??2??a??? ? ?2?? stc89 ??e??????????????????????2?1?e isp ??3y?3e ? ??o? pc ?? ?????3e???????3e?a??a?????????2? ? 1?te?3? ( ???3?? ) ? 2?a? ?3??3 ? ??e?????????2??1?? isp ??3y?3e23y ? ?3?t1? stc 1?? isp ?t?a?????3e?a? ? ?o??????1? stc 1?? isp ?a??1?? ? stc-isp.exe ?t ? o (1). ??? stc 1?? isp ?a??1?? ? ?t ? ?a? www.mcu-memory.com ??? ? ? stc ?????a?? pc ? ??? ? ??? isp 3e ? ? o??????a?1 ? ?2?? ? ?ee setup.exe ? , va???ea?t ? (2). 1? stc-isp ?a??1?? ? ?t ? , ?????ea ? ?????? ver2.5 / 2.9 ?? (2005/2/2), ?3? *.hex(intel 16 ??????? ) ???t ,rc/rd+ ??e??????2??t???a ver2.7c( ?????? ) ? ???-vay?? pc ? ??? ? ??? isp 3e , ?? ver2.5 ??y?? ? ver2.9 2a????-2a? ? ???????aeo? o stc89c51rc ? stc89c52rc ? STC89C53RC stc89le51rc ? stc89le52rc ? stc89le53rc stc89c54rd+ ? stc89c58rd+ ? stc89c516rd+ stc89le54rd+ ? stc89le58rd+ ? stc89le516rd+ stc89c516rd ? stc89c58rd ? ?2? ? 2?a?? ? stc89lv516rd ? stc89lv58rd ? ?2? ? 2?a?? ? ???????aeo? o stc89le516ad, stc89le516x2, stc89le58ad, stc89le54ad, stc89le52ad (3). ??-1?e isp y?a? , 2l???a???????? isp ? stc89c51rc/rd+ ??e???? 3?3 ????? , ea?????2????1ao ????? ( ??e? ) 2???ee??3 isp 3e ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 18 p 1 . 0 p 1 . 1 8 9 l e 5 1 6 a d 8 9 l e 5 1 6 x 2 8 r 2 i n r 2 o u t 9 s t c ???????3??a , s t c r s - 2 3 2 a??? 0 . 1 u f 2 v + g n d 1 5 1 c 1 + v c c 1 6 v c c 3 c 1 - t 1 o u t 1 4 5 c 2 - r 1 o u t 1 2 6 v - t 1 i n 1 1 7 t 2 o u t t 2 i n 1 0 s t c 2 3 2 , s t c 3 2 3 2 p c _ r x d ( c o m p i n 2 ) 4 c 2 + r 1 i n 1 3 p c _ t x d ( c o m p i n 3 ) g n d m c u _ r x d ( p 3 . 0 ) m c u _ t x d ( p 3 . 1 ) p3.0 p3.1 89c52rc 89c58rd+ pc / ??? ?? 89le52rc 89le516rd+ 2 3 5 8 r 2 i n r 2 o u t 9 s t c ???????3??a ? s t c r s - 2 3 2 a??? s 0 . 1 u f 2 v + g n d 1 5 1 c 1 + v c c 1 6 v c c 3 c 1 - t 1 o u t 1 4 5 c 2 - r 1 o u t 1 2 6 v - t 1 i n 1 1 7 t 2 o u t t 2 i n 1 0 s t c 2 3 2 , s t c 3 2 3 2 p c _ r x d ( c o m p i n 2 ) 4 c 2 + r 1 i n 1 3 p c _ t x d ( c o m p i n 3 ) g n d m c u _ r x d ( p 3 . 0 ) m c u _ t x d ( p 3 . 1 ) p 3 . 0 p 3 . 1 pc / ??? ?? 2 3 5 ??????2??t???a ver2.7c ????? ? pc ? ??? ? ??? isp 3e?e?? ver2.5 ??
step1/ 2?? 1 o ???????1??????eo? ? ? stc89c58rd+, stc89le516ad ? step2/ 2?? 2 o ??a???t ? a?a???3e ? ?e??????3e?a? ? *.bin, *.hex ? step3/ 2?? 3 o ?????ee? ? ???1??????? ? ??ee? 1--com1, ?ee? 2--com2,... ee?ea?????????e rs-232 ?ee? , ?a?? usb-rs232 a?? ? ??? 70 ?a ? step4/ 2?? 4 o ???????? ? ???????e double speed ?? stc89c51rc / rd+ ??e?????? ???? / ??? stc89le516ad ?a??? ? stc89le516x2 ?a???? , ????o?t??? ???? / ??? stc89c516rd ??e3?3??a??? ? ???????a???? ? ???????????3?? ? ? ?e??3?23y????????? ? ?a????????2???a?? isp y?3e23y ? ??1?????? ? ?te??? ? oscdn: ???????????????? ?? 1/2 gain ?a???? ? ??? emi ? ?? full gain ? ???? ? ?a?y3?? ? step5/ 2?? 5 o ???? ? download/ ?a?? ? ??a?????3e???????2? ? ?????ee step5/ 2?? 5 ? 2????? ? re-download/ ????a?? ? ? ?a??va??? ? ?a????a???????????? , ?a???????3?? ? ??????? ? download/ ?a?? ? ? ? ?o???????????? ( ?31???? ) ? ??2?a??? 1?2?t?? o (1). mcu/ ???? rxd(p3.0) --- rs-232 a??? --- pc/ ??? txd(com port pin3) (2). mcu/ ???? txd(p3.1) --- rs-232 a??? --- pc/ ??? rxd(com port pin2) (3). mcu/ ???? gnd ---------------------- pc/ ??? gnd(com port pin5) (4). p1.0, p1.1 = 0, 0 ? ????? ??? isp ??? , ?a??o? p1.0,p1.1, 89le516ad/x2 ??ee? ?3e . stc89c51rc/rd+,stc89le51rc/rd+ ??e????2?ea p1.0,p1.1 = 0 ? 0 stc89le516ad,stc89le516x2,stc89le58ad,stc89le54ad ea p1.0,p1.1 = 0 ? 0 (5). rs-232 a??????? sp232/max232(4.5-5.5v),sp3232/max3232(3v-5.5v). sp232/max232 ?????? sop a ( ?-? ,sp232een) ? sp3232 ?????? ssop a (sp3232eea) o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) ????a??????? ? 3y????a????o3????e ???a ? ??t????o 2?????o3??? ???????t???o3??? ? a????????t???o3??? ? a???o3??? ? ????yea?t???? e?2?a 5v ???? ? 24mhz ??a 3v ???? ? 16mhz ??a ???? 1/2 gain, ??a2???? ???21?
?????3??e rs-232 ?? ? ?1? stc-isp ver 2.0b.pcb ?y???a31?? stc-isp ver 2.0b pcb ??3 ?a?? / ?a? ??3e?1|? ? ? stc-isp ver 2.0b pcb ?3?a?? / ?a? o 1?2?t?? o (1.) ??y?????1|??1????????????1 a. 5v ???? , ?? jp1 ? mcu-vcc , 5v ??1?? b ? 3v ???? , ?? jp1 ? mcu-vcc , 3.3v ??1?? (2.) ??y?????1|??1???????e?o? a. 5v ???? , ?? jp2 ? mcu-rst , 5v/mcu-rst e?o?1?? b. 3.3v ???? , ?? jp2 ? mcu-rst , 3.3v/mcu-rst e?o?1?? (3.) ???? ( o??1? ) a. ?????e 9 e????2?2?? pc/ ??? rs-232 ?ee??2? ?e? b. ??????? usb 2?2?? pc/ ??? usb ????? c. ????e??? usb 2?????2??o?? stc-isp ver 2.0b pcb ? usb1 2?? rs-232 e?o1?? , ? +5v power ? (d10, usb ??e? ) (4.) ????2?2?e?? (5.)sw1 ?a1?|??a?? ? ? mcu-vcc power ?2? (d9), ??e??????? (6.)sw3 ?a1? |??a?? ? p1.0, p1.1 = 1, 1, 2????? ? ? o stc89c51rc / rd+, /rd ??e???? |?a?? ? p1.0, p1.1 = 0, 0, ???? ? ? o stc89le516ad, stc89le58ad, stc89le54ad, stc89le516x2 (7.) ??????2??? u1-socket ???? ? ???????? (8.) 1??t o ???? ? download/ ?a?? ? ( ?e??????????????? pc ?v??o??a???? ) (9.) ?a sw1 ?a1? ? ??????????? , ? mcu-vcc power ? (d9) ? stc ??????? isp ??? (stc89c51rc/rd+ ??e??????? isp) (10.) ?a??31|o ? ? sw1 ?a1? ? ? sw1 ?a1?|??a?? ? mcu-vcc power ?2? (d9), ????????? ? ??a???? ? ?? stc-isp ver 2.0b pcb ? ??ee rs-232 a?? ?????????o???3?a?? / ?a? o 1 ? u1-socket ????2??2?????? 2 ? ??????3???? (mcu-vcc,gnd) ?????? p3.0/rxd,p3.1/txd ??a??? cn2 2? ?a?????3???????????? pc/ ??? ??eee???| 3. ??????3?????? p1.0,p1.1 ??a??? cn2 2? ( ?? stc89le516ad/x2 ??eea ) 4 . sw3 ?a1?|?a?? ? p1.0, p1.1 = 0, 0, ???? ? ?? stc89le516ad/x2 ??eea 5. 1??t o ???? ? download/ ?a?? ? 6. ????????3????? ( va??????3?1?? ? 2?a???? usb ?? , ??? usb 2?2? ) 7. ?a??3e ? ????ea2????1?a ? 2????? ? ?????e?e?y???? , ?2??? isp ?a??3e?a2????1??? , ???a2????1?a wdi ?? / ? wdo ?????? 8. ?e rs-485 ????? p3.0/rxd,p3.1/txd, ??a??|???????a ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 20
mnemonic add name 7 6 5 4 3 2 1 0 reset value isp_data e2h isp/iap flash data register 1111,1111 isp_addrh e3h isp/iap flash address high 0000,0000 isp_addrl e4h isp/iap flash address low 0000,0000 isp_cmd e5h isp/iap flash command register - - - - - ms2 ms1 ms0 xxxx,x000 isp_trig e6h isp/iap flash command trigger xxxx,xxxx isp_contr e7h isp/iap control register ispen swbs swrst - - wt2 wt1 wt0 000x,x000 rc/rd+ ??e 8051 ???? isp/iap ?a1|????? isp/iap sfrs stc89c51 rc / rd+ ??e isp / iap |? isp_data: isp/iap 2?y?y???? ? isp/iap ? flash ?3??y?y???| ? ? flash e?y?y2e???| isp_addrh: isp/iap 2???????????? ? isp_addrl: isp/iap 2???????|???? ? isp_cmd: isp/iap 2?????????? ? e????????????e ? b7 b6 b5 b4 b3 b2 b1 b0 ?? / 2 ??????? ?? ?? ???? - - - - - 0 0 0 standby y???? ? ?t isp 2 - - - - - 0 0 1 ap-flash / data-flash read ?????|?3e flash ????y?y flash ????? - - - - - 0 1 0 ap-flash / data-flash program ?????|?3e flash ????y?y flash ????3 - - - - - 0 1 1 ap-flash / data-flash sector erase ?????|?3e flash ????y?y flash ????23y 3e???3 isp 3e?????????|?3e?? / y?y flash ?? (eeprom) ??ee??? / ??3 / ??23y ? 3e????|?3e?? ? ??????y?y flash ?? (eeprom) ??ee? ?? / ??3 / ??23y ? ??-1?e isp y?a? , 2l???a???????? isp ? stc89c51rc/rd+ ??e???? 3?3?????? ? isp_trig: isp/iap 2???????? ? ? ispen(isp_contr.7) = 1 , ?? isp_trig ?e?? 46h, ?e?? b9h, isp/iap ??2??e ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 21 stc89c51 rc / rd+ ??e ?2? eeprom ?|? -- ?? iap ?????? eeprom ? ?2? flash 2e?y?a 100,000 ??? ;5v ???? ? |? 3.6v ??a?????? ? 3v ???? ? |? 2.4v ??a?????? ; ????1??a ? ??? isp/iap 1|? ? 3 / 23y flash ? 2??????a? ; ????a??? max810,stc810,stc6345,stc6344 ? 813l,706p ?
???y?? cpu ?y?? ( ???? ) wt2 wt1 wt0 read program sector erase recommended system clock 0 1 1 6 30 5471 5mhz 0 1 0 11 60 10942 10mhz 0 0 1 22 120 21885 20mhz 0 0 0 43 240 43769 40mhz isp_contr: isp/iap ???????? ? b7 b6 b5 b4 b3 b2 b1 b0 reset value ispen swbs swrst - - wt2 wt1 wt0 000x,x000 ispen: isp/iap 1|??e?? ? 0 o ???1 isp/iap 3??? flash,1: ?e3??? flash swrst: 0: 2?2 ? 1: 2?t??3??? ? 2?t????? ? swbs: ?t????????3e????? ? 0 ?? ?1?? isp 3e????? ? 1 ?? stc89c51rc,stc89le51rc ?????2??? data flash(eeprom) ??? o ???? ??t?? ?y?? ????? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 1000h 11ffh 1200h 13ffh 1400h 15ffh 1600h 17ffh ????? ??? ????? ???? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 1800h 19ffh 1a00h 1bffh 1c00h 1dffh 1e00h 1fffh stc89c52rc,stc89le52rc ?????2??? data flash(eeprom) ??? o ???? ??t?? ?y?? ????? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 2000h 21ffh 2200h 23ffh 2400h 25ffh 2600h 27ffh ????? ??? ????? ???? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 2800h 29ffh 2a00h 2bffh 2c00h 2dffh 2e00h 2fffh o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 22 stc89c51rc/rd+ ??e?2??? data flash(eeprom) ??? ( ?3e???????a? ) o e????2?? iap e?y?y ? o?2?-?????????3e?? ? ?????o?a? 3e????|?3e?? (ap ?? ) , ?????? data flash(eeprom) ??ee iap/isp 2 , 2??? et??? ? ?a???3?????? ?
???? ??t?? ?y?? ????? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 4000h 41ffh 4200h 43ffh 4400h 45ffh 4600h 47ffh ????? ??? ????? ???? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 4800h 49ffh 4a00h 4bffh 4c00h 4dffh 4e00h 4fffh ????? ???? ????? ???t?? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 5000h 51ffh 5200h 53ffh 5400h 55ffh 5600h 57ffh ??y?? ?????? ?????? ???? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 5800h 59ffh 5a00h 5bffh 5c00h 5dffh 5e00h 5fffh ?????? ????? ?????? ??t??? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 6000h 61ffh 6200h 63ffh 6400h 65ffh 6600h 67ffh ??t???? ??t??t?? ??t?y?? ??t????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 6800h 69ffh 6a00h 6bffh 6c00h 6dffh 6e00h 6fffh ??t????? ??t??? ??t????? ??t???? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 7000h 71ffh 7200h 73ffh 7400h 75ffh 7600h 77ffh ??t????? ?y??? ?y???? ?y??t?? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 7800h 79ffh 7a00h 7bffh 7c00h 7dffh 7e00h 7fffh ?y?y?? ?y????? ?y????? ?y??? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 8000h 81ffh 8200h 83ffh 8400h 85ffh 8600h 87ffh ?y????? ?y???? ?y????? ?????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 8800h 89ffh 8a00h 8bffh 8c00h 8dffh 8e00h 8fffh ??????? ?????t?? ????y?? ???????? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 9000h 91ffh 9200h 93ffh 9400h 95ffh 9600h 97ffh ???????? ?????? ???????? ??????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 9800h 99ffh 9a00h 9bffh 9c00h 9dffh 9e00h 9fffh ???????? ?????? ??????? ?????t?? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? a000h a1ffh a200h a3ffh a400h a5ffh a600h a7ffh ????y?? ???????? ???????? ?????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? a800h a9ffh aa00h abffh ac00h adffh ae00h afffh ???????? ??????? ???????? ???? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? b000h b1ffh b200h b3ffh b400h b5ffh b600h b7ffh ????? ???t?? ??y?? ?????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? b800h b9ffh ba00h bbffh bc00h bdffh be00h bfffh stc89c54rd+,stc89le54rd+ ?????2??? data flash(eeprom) ??? o o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 23
stc89c58rd+,stc89le58rd+ ?????2??? data flash(eeprom) ??? o ???? ??t?? ?y?? ????? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 8000h 81ffh 8200h 83ffh 8400h 85ffh 8600h 87ffh ????? ??? ????? ???? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 8800h 89ffh 8a00h 8bffh 8c00h 8dffh 8e00h 8fffh ????? ???? ????? ???t?? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 9000h 91ffh 9200h 93ffh 9400h 95ffh 9600h 97ffh ??y?? ?????? ?????? ???? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? 9800h 99ffh 9a00h 9bffh 9c00h 9dffh 9e00h 9fffh ?????? ????? ?????? ??t??? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? a000h a1ffh a200h a3ffh a400h a5ffh a600h a7ffh ??t???? ??t??t?? ??t?y?? ??t????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? a800h a9ffh aa00h abffh ac00h adffh ae00h afffh ??t????? ??t??? ??t????? ??t???? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? b000h b1ffh b200h b3ffh b400h b5ffh b600h b7ffh ??t????? ?y??? ?y???? ?y??t?? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? b800h b9ffh ba00h bbffh bc00h bdffh be00h bfffh ?y?y?? ?y????? ?y????? ?y??? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? c000h c1ffh c200h c3ffh c400h c5ffh c600h c7ffh ?y????? ?y???? ?y????? ?????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? c800h c9ffh ca00h cbffh cc00h cdffh ce00h cfffh ??????? ?????t?? ????y?? ???????? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? d000h d1ffh d200h d3ffh d400h d5ffh d600h d7ffh ???????? ?????? ???????? ??????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? d800h d9ffh da00h dbffh dc00h ddffh de00h dfffh ???????? ?????? ??????? ?????t?? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? e000h e1ffh e200h e3ffh e400h e5ffh e600h e7ffh ????y?? ???????? ???????? ?????? ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? e800h e9ffh ea00h ebffh ec00h edffh ee00h efffh ???????? ??????? ???????? ???? ???? ?? 512 ?? ? ??? 128 ?? ??a ?e??? ???? ?e??? ???? ?e??? ???? ?e??? ???? f000h f1ffh f200h f3ffh f400h f5ffh f600h f7ffh o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 24
e??a?1????y ? ?????2?????? c ?-3e ; ? data ?1? equ ?ea???a1|?????|??a???????? / ?? isp_data data 0e2h; ? isp_data equ 0e2h isp_addrh data 0e3h; ? isp_addrh equ 0e3h isp_addrl data 0e4h; ? isp_addrl equ 0e4h isp_cmd data 0e5h; ? isp_cmd equ 0e5h isp_trig data 0e6h; ? isp_trig equ 0e6h isp_contr data 0e7h; ? isp_contr equ 0e7h ; ?? isp/iap ????y?? isp_iap_byte_read equ 1 ; ??? isp_iap_byte_program equ 2 ; ??3 , ?????????? ? 0ffh isp_iap_sector_erase equ 3 ; ??23y , a?3???a?? ? a2??? wait_time equ 0 ; ???y?? ,40mhz ??a 0,20m ??a 1, ; 10mhz ??a 2,5m ??a 3 ; ??? mov isp_addrh, #byte_addr_high ; ??????? mov isp_addrl, #byte_addr_low ; ?????? clr ea ; 1??e?? , ???e????? ? ??1?e ? ??a?e?? ? ??| ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_contr, #wait_time ; ???y?? orl isp_contr, #10000000b ; ?e isp/iap 2 mov isp_cmd, #isp_iap_byte_read ; ?????? ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_trig, #46h ; ?? 46h, ?? b9h ? isp/iap ????? ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_trig, #0b9h ; ? b9h o ? isp/iap ??????e? ;cpu ?y iap ?3o ? 2???e??ee3e ? a?1??e?? ? ea ? , ; ?? 46h,b9h ? isp/iap ????? , ?e? isp/iap ?? , 1??e????????? nop ; y?y?3?? isp_data ????o ? cpu ?e??ee3e mov isp_contr, #00000000b ; ???1 isp/iap 2 mov isp_cmd, #00000000b ; 3y isp/iap ?? mov isp_trig, #00000000b ; ?1 isp/iap ???? mov isp_addrh, #0ff ; ?????????a?a ff, ?1?2 mov isp_addrl, #0ff ; ????????a?a ff, ?1?2 setb ea ; ?a?e?? ? cpu | isp/iap ????a?e?? mov a, isp_data ; ???3??y?y? acc stc89c51 rc / rd+ ??e iap |????? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 25 stc89c51 rc / rd+ ??e ?2? eeprom ?|?
o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 26 ; ??3 ? ?????a ffh/ ?? ? ?????3 ? ??2?ee , a??ee??23y mov isp_data, #one_data ; ???3y?y? isp_data mov isp_addrh, #byte_addr_high ; ??????? mov isp_addrl, #byte_addr_low ; ?????? clr ea ; 1??e?? , ???e????? ? ??1?e ? ??a?e?? ? ??| ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_contr, #wait_time ; ???y?? orl isp_contr, #10000000b ; ?e isp/iap 2 mov isp_cmd, #isp_iap_byte_program ; ???3?? ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_trig, #46h ; ?? 46h, ?? b9h ? isp/iap ????? ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_trig, #0b9h ; ? b9h o ? isp/iap ??????e? ;cpu ?y iap ?3o ? 2???e??ee3e ? a?1??e?? ? ea ? , ; ?? 46h,b9h ? isp/iap ????? , ?e? isp/iap ?? , 1??e????????? nop ; ??331|o ? cpu ?e??ee3e mov isp_contr, #00000000b ; ???1 isp/iap 2 mov isp_cmd, #00000000b ; 3y isp/iap ?? mov isp_trig, #00000000b ; ?1 isp/iap ???? mov isp_addrh, #0ff ; ?????????a?a ff, ?1?2 mov isp_addrl, #0ff ; ????????a?a ff, ?1?2 setb ea ; ?a?e?? ? cpu | isp/iap ????a?e??
o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 27 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 ; ??23y ? ??e??23y ? ??e??23y ? 512 ?? / ?? , ?????????? ;1 ?? /2 ?? /3 ?? /4 ?? ---128 ?? /256 ?? /512 ?? , ???????? ; ?1?a???3??????ee23y ? ?????eee?????yea? ? ?e??????????? ; ?2?? ram ?e? ? ???????23y ? ?o?????y?ye?????? ? ???????? ; ?e????y????o? ? 2?e??????? ( ????????? 1-128 ???????? ) mov isp_addrh, #sector_first_byte_addr_high ; ????e??????? mov isp_addrl, #sector_first_byte_addr_low ; ????e?????? clr ea ; 1??e?? , ???e????? ? ??1?e ? ??a?e?? ? ??| ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_contr, #wait_time ; ???y?? orl isp_contr, #10000000b ; ?e isp/iap mov isp_cmd, #isp_iap_sector_erase ; ???23y?? ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_trig, #46h ; ?? 46h, ?? b9h ? isp/iap ????? ; ???t?y??e?? ? ??a??? ? ?????????????????? mov isp_trig, #0b9h ; ? b9h o ? isp/iap ??????e? ;cpu ?y iap ?3o ? 2???e??ee3e ? a?1??e?? ? ea ? , ; ?? 46h,b9h ? isp/iap ????? , ?e? isp/iap ?? , 1??e????????? nop ; ??23y 31|o ? cpu ?e??ee3e mov isp_contr, #00000000b ; ???1 isp/iap 2 mov isp_cmd, #00000000b ; 3y isp/iap ?? mov isp_trig, #00000000b ; ?1 isp/iap ???? mov isp_addrh, #0ff ; ?????????a?a ff, ?1?2 mov isp_addrl, #0ff ; ????????a?a ff, ?1?2 ; ????|?3e?? (ap ?? ) ?t???2?e??? isp 3e???a??ee3e mov isp_contr, #01100000b ;swbs = 1( ???? isp ?? ), swrst = 1( ??? ) ; ? isp 3e???t???2?e??????|?3e?? (ap ?? ) ?a??ee3e mov isp_contr, #00100000b ;swbs = 0( ???? ap ?? ), swrst = 1( ??? ) ; 1? isp/iap 1|????????? 13922805190 ? |1 ? ?????????a ; ????a isp ????? isp ?? 46h,b9h ????y???? ? ??e??t?y? ;5v ???? ? |? 3.6v ??a?????? ? 3v ???? ? |? 2.4v ??a?????? ; ????a??? max810,stc810,stc6345,stc6344 ? 813l,706p ? ; ????1??a ? ??? isp/iap 1|? ? 3 / 23y flash ? 2??????a?
?a2??y????? 8051 3e?a?o ? 2????ee ??a? a: o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 28 1. ????e? stc89c58rd+ ? stc89c52rc ??e?????2???1? aux-ram. eo? ?2???1 ram ??a2? 64 k y?y???? movx @dptr / xdata movx @ri / pdata stc89c51rc 256 ?? 0000h - 00ffh ?? > = 100 h, 2???a2? ?????2???1 ram stc89le51rc 256 ?? 0000h - 00ffh ?? > = 100 h, 2???a2? ?????2???1 ram stc89c52rc 256 ?? 0000h - 00ffh ?? > = 100 h, 2???a2? ?????2???1 ram stc89le52rc 256 ?? 0000h - 00ffh ?? > = 100 h, 2???a2? ?????2???1 ram STC89C53RC 256 ?? 0000h - 00ffh ?? > = 100 h, 2???a2? ?????2???1 ram stc89le53rc 256 ?? 0000h - 00ffh ?? > = 100 h, 2???a2? ?????2???1 ram stc89c54rd+ 1024 ?? 0000h - 03ffh ?? > = 400 h, 2???a2? ?????2???1 ram stc89le54rd+ 1024 ?? 0000h - 03ffh ?? > = 400 h, 2???a2? ?????2???1 ram stc89c58rd+ 1024 ?? 0000h - 03ffh ?? > = 400 h, 2???a2? ?????2???1 ram stc89le58rd+ 1024 ?? 0000h - 03ffh ?? > = 400 h, 2???a2? ?????2???1 ram stc89c516rd+ 1024 ?? 0000h - 03ffh ?? > = 400 h, 2???a2? ?????2???1 ram stc89le516rd+ 1024 ?? 0000h - 03ffh ?? > = 400 h, 2???a2? ?????2???1 ram stc89le516ad 256 ?? 0000 - ffffh, ???a2? ?????2???1 ram stc89le516x2 256 ?? 0000 - ffffh, ???a2? ?????2???1 ram ?1???????? p0 / p2 ???a?? i/o ? ( ?? / ?3?? ) ?? ? ?t3?? ?1???????? p0 / p2 ???a????1?? ? a2???1??t?????2???1 ram ??? ? ?t3?? ?1???????? p0 / p2 ???a????1?? ? ??a2???1??t?????2?? ?1 ram ???? ? ??????2???1? aux-ram, ?? ee???3???a???1?2???1 ram mnemonic add name 7 6 5 4 3 2 1 0 reset value auxr 8eh auxiliary register 0 - - - - - - extram aleoff xxxx,xx00 ?? auxr ????|? extram ?a 1 ? ?????1?2???1? aux-ram ? 1???? 8052 ?? ? stc89c52rc / stc89c58rd+ ??e stc89le516ad / stc89le516x2 ??e auxr ?????t extram ?????? ? 1y??????? 2. ??? / ??a stc89c52rc / stc89c58rd+ ????ea? ?? xtal1 1?????y? ? xtal2 1????? y?a 47pf ,33pf,30pf ? ????|2???? ? ? ? movx @ri ? 1????2???1 ram, ? movx, @dptr ? 1???a2???1 64k y?y?? ?? ? ????|2???? ? stc89le516ad / stc89le516x2 ??e xtal1 / xtal2 1????y? 10pf 3. ????a ? / ?y??????a ? = 10k, ?y = 10uf ? ??a?a2??e?????? ? reset 1?? ( ????? ) 2?a??o??- / ?a-? ? ????|2????
??a? b: o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 29 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 ?a1|?????3?? sfr mapping stc89le516ad ??e???????? bit addressable non bit addressable 0/8 1/9 2/a 3/b 4/c 5/d 6/e 7/f f8h ffh f0h b 0000,0000 f7h e8h efh e0h acc 0000,0000 e7h d8h dfh d0h psw 0000,0000 d7h c8h t2con 0000,0000 t2mod xxxx,xx00 rcap2l 0000,0000 rcap2h 0000,0000 tl2 0000,0000 th2 0000,0000 cfh c0h p4 xxxx,1111 adc_contr xxx0,0000 adc_data xxxx,xxxx c7h b8h ip x000,0000 saden 0000,0000 bfh b0h p3 1111,1111 iph x000,0000 b7h a8h ie 0000,0000 saddr 0000,0000 afh a0h p2 1111,1111 auxr1 xxxx,xxx0 a7h 98h scon 0000,0000 sbuf xxxx,xxxx 9fh 90h p1 1111,1111 p1_adc_en 0000,0000 97h 88h tcon 0000,0000 tmod 0000,0000 tl0 0000,0000 tl1 0000,0000 th0 0000,0000 th1 0000,0000 auxr xxxx,xxx0 8fh 80h p0 1111,1111 sp 0000,0111 dpl 0000,0000 dph 0000,0000 pcon 0xx1,0000 87h 0/8 1/9 2/a 3/b 4/c 5/d 6/e 7/f stc89le516ad,stc89le58ad,stc89le54ad,stc89le52ad ?a??? ad ??e?? isp 2?????? ? 1e? stc89le516ad ??????? (6t)stc89le516x2 ???e??? ? ???3?3???a????? ?
int1/p3.3 15 31 p2.7/a15 int0/p3.2 14 32 psen a12/p2.4 p0.3/ad3 a10/p2.2 p0.1/ad1 a11/p2.3 p0.2/ad2 6 5 4 3 2 1 44 43 42 41 40 a8/p2.0 vdd txd/p3.1 13 33 ale/prog t0/p3.4 16 30 p2.6/a14 adc5/p1.5 7 39 p0.4/ad4 adc6/p1.6 8 38 p0.5/ad5 t1/p3.5 17 29 p2.5/a13 p4.3 12 34 p4.1 adc7/p1.7 9 37 p0.6/ad6 rxd/p3.0 11 35 ea p4.0 p4.2 a9/p2.1 p0.0/ad0 wr/p3.6 p1.4/adc4 rd/p3.7 p1.3/adc3 xtal2 p1.2/adc2 xtal1 p1.1/t2ex/adc1 vss p1.0/t2/adc0 rst 10 36 p0.7/ad7 18 19 20 21 22 23 24 25 26 27 28 int0/p3.2 8 26 psen a12/p2.4 p0.3/ad3 4 4 43 4 2 41 40 39 38 37 36 3 5 34 rd/p3.7 p1.3/adc3 wr/p3.6 p1.4/adc4 xtal2 p1.2/adc2 xtal1 p1.1/t2ex/adc1 vss p1.0/t2/adc0 p4.0 p4.2 txd/p3.1 7 27 ale/prog pqfp-44 p4.3 6 28 p4.1 adc5/p1.5 1 33 p0.4/ad4 rxd/p3.0 5 29 ea rst 4 30 p0.7/ad7 adc7/p1.7 3 31 p0.6/ad6 adc6/p1.6 2 32 p0.5/ad5 t1/p3.5 11 23 p2.5/a13 int1/p3.3 9 25 p2.7/a15 t0/p3.4 10 24 p2.6/a14 a8/p2.0 vdd a9/p2.1 p0.0/ad0 a10/p2.2 p0.1/ad1 a11/p2.3 p0.2/ad2 12 13 14 15 1 6 17 18 19 20 21 22 dip-40 adc0/t2/p1.0 1 40 vcc adc1/t2ex/p1.1 2 39 p0.0/ad0 adc2/p1.2 3 38 p0.1/ad1 adc3/p1.3 4 37 p0.2/ad2 adc4/p1.4 5 36 p0.3/ad3 adc5/p1.5 6 35 p0.4/ad4 adc6/p1.6 7 34 p0.5/ad5 adc7/p1.7 8 33 p0.6/ad6 rst 9 32 p0.7/ad7 rxd/p3.0 10 31 ea txd/p3.1 11 30 ale/prog int0/p3.2 12 29 psen int1/p3.3 13 28 p2.7/a15 t0/p3.4 14 27 p2.6/a14 t1/p3.5 15 26 p2.5/a13 wr/p3.6 16 25 p2.4/a12 rd/p3.7 17 24 p2.3/a11 xtal2 18 23 p2.2/a10 xtal1 19 2 2 p2.1/a9 vss 20 21 p2.0/a8 plcc-44 stc89le516ad / x2 ??e???? 1??? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 1|??1 : 3.6v - 2.4v, ??? 2.4v - 1.9v i/o ? o p0,p2,p3,p4 ???3e 5v ?? ? p4 ? o ??? c0h, p4.3 - p4.0 a/d a??? p1 ? , p1.0 - p1.7 ?a ? p1 ?2?a?? 5v ??3 , ???? 3.3v ??3 . 10k 10k a/d 1/2 vcc 2/3 vcc 3/4 vcc vcc 10k 10k 10k 4/5 vcc p1.0 - p1.7 a/d a???e|???a o ??
o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 1.stc89le516ad ??e??????1 aux-ram ?1? ????? : ( ???2???1? 256 ?? aux-ram) movx @ri, a ; ????? a ???? @ri ??????a , i = 0, 1 movx a, @ri ; ?? @ri ??????a??????? a, i = 0, 1 stc89le516ad/x2 ??e????? ? movx a ? @ri ? ? ? movx a ? @ri ? ?????2?? a2? 64k y?y???? ? stc89le516ad/x2 ??e?????2?? ram ?a 512 ?? (256+256), ????1? 256 ??? aux-ram, ???????a : ????? : ( ??a2? 64k y?y???? ) movx @dptr, a ; ????? a ???? @dptr ??????a movx a, @dptr ; ?? @dptr ??????a??????? a stc89le516ad/x2 ??e????? ? movx a ? @dptr ? ? ? movx a ? @dptr ? ????? 2???2???1? 256 ?? aux-ram ? c ??? : ? pdata ?|??????????2???1? 256 ?? aux-ram ? xdata ?|?????????a2? 64k y?y???? 2. ??y?y???? ? auxr1 ???? auxr 8eh auxiliary register 0 - - - - - - - aleoff xxxx,xxx0 auxr1 a2h auxiliary register 1 - - - - - - - dps xxxx,xxx0 dps = 0 ???? dptr0 ? dps = 1 ???? dptr1 ??? ? inc auxr1 ? ???e?? dptr0 / dptr1 3. ???1 ale ?3? ? auxr1 ???? aleoff = 0, ale e?o??y3??3? ? aleoff = 1, ???1 ale e?o??3? ? ????a2?y?y??????a2?3e????ee?o??3? ? 4. ?e?? ? ?e?????????????? ip / iph ?e????? 8052 ???y ? ??????a 4 ?? , 1y???? iph ???? mnemonic add name 7 6 5 4 3 2 1 0 reset value ie a8h interrupt enable ea - et2 es et1 ex1 et0 ex0 0000,0000 ip b8h interrupt priority low - - pt2 ps pt1 px1 pt0 px0 xx00,0000 iph b7h interrupt priority high - - pt2h psh pt1h px1h pt0h px0h xx00,0000
interrupt source ?e??? vector address ?e?? ???? polling sequence ?e?? 2??e ?e?? ?????? ???? 0 ?? ???? 1 ???? 2 ???? 3 ??? interrupt request ?e????? /int0 0003h 1 px0h,px0 0,0 0,1 1,0 1,1 ie0 timer 0 000bh 2 pt0h,pt0 0,0 0,1 1,0 1,1 tf0 /int1 0013h 3 px1h,px1 0,0 0,1 1,0 1,1 ie1 timer 1 001bh 4 pt1h,pt1 0,0 0,1 1,0 1,1 if1 uart 0023h 5 psh, ps 0,0 0,1 1,0 1,1 ri + ti timer 2 002bh 6 pt2h,pt2 0,0 0,1 1,0 1,1 tf2 + exf2 4.a/d ? a/d a?????? adc_contr / adc_data / p1_adc_en mnemonic add name 7 6 5 4 3 2 1 0 reset value p1_adc_en 97h ?e p 1 . x 3?a a / d ? adc_p17 adc_p16 adc_p15 adc_p14 adc_p13 adc_p12 adc_p11 adc_p10 0000,0000 adc_contr c5h a / d a?????????? - - - adc_flag adc_start chs2 chs1 chs0 xxx0,0000 adc_data c6h a / d a???1????? - - - - - - - - 0000,0000 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 32 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 stc89le516ad/x2 ? p1 ? ? e 8 ????????? a/d a??? , p1.7 - p1.0 12 8 a ?e p 1 . x 3?a a / d ? adc_p17 adc_p16 adc_p15 adc_p14 adc_p13 adc_p12 adc_p11 adc_p10 0000,0000 p1_adc_en ?a1|????? : p1.x ?a a/d a????????e?a1|????? ?|???a ? 1 ? ? ??|? p1.x ??a a/d a??1? , ?2??-??????a a / d a?????????? - - - adc_flag adc_start chs2 chs1 chs0 xxx0,0000 ??1??e ? ???? ? ?3???1?2a ? ???2a? ? 17 ???????3?? a?? ? ?? 40mhz ??a ? adc_contr ?a1|????? : a/d a???????a1|????? chs2 chs1 chs0 analog input channel select ??a??????? 0 0 0 ???? p 1 . 0 ?a a / d ???? 0 0 1 ???? p 1 . 1 ?a a / d ???? 0 1 0 ???? p 1 . 2 ?a a / d ???? 0 1 1 ???? p 1 . 3 ?a a / d ???? 1 0 0 ???? p 1 . 4 ?a a / d ???? 1 0 1 ???? p 1 . 5 ?a a / d ???? 1 1 0 ???? p 1 . 6 ?a a / d ???? 1 1 1 ???? p 1 . 7 ?a a / d ???? chs2 / chs1 / chs0 o ??a??????? ? chs2 / chs1 / chs0 adc_start: ??a / y?a?? (adc) ????????? ? ???a ? 1 ? ? ?a?a?? adc_flag: ??a / y?a???????? , ? a/d a??3o ? adc_flag = 1 ? adc_data ?a1|????? : a/d a???1??a1|????? a / d a???1????? - - - - - - - - 0000,0000 ??a / y?a???1?????1????a o ?1? = 2 5 6 x v i n / v c c v i n ?a??a???????1 ? v c c ?a?????1|??1 ? ?????1|??1?a??a2?????1 ?
o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 33 o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 /* ------------- o????? 2005/1/5 a/d a?? c ????y ------------ */ /* ---mobile: 13922805190, tel: 0755 - 82908285, fax: 0755 - 82944243 */ /* ----website: www.mcu-memory.com email: support@dsp-memory.com --- */ // adc demo 3e?y? stc89le516ad/x2 ??e mcu ? a/d a??1|? ? ? 11.0592mhz // a???1?? 16 ????e???3???ee? ? ????ee???3e1?2?3??1? ? #include #include // ??? adc e1???a1|????? sfr p1_adc_en = 0x97; // a/d a??1|??e???? sfr adc_contr = 0xc5; // a/d a?????????? sfr adc_data = 0xc6; // a/d a???1????? typedef unsigned char int8u; typedef unsigned int int16u; void delay(int8u delay_time) // ?oy { int8u n; int16u m; for (n=0; n int8u get_ad_result(int8u channel) { int8u ad_finished = 0; // ? a/d a???? adc_data = 0; adc_contr = channel; // ???? a/d ???? delay(1); // 1????1???? adc_contr |= 0x08; //0000,1000 ? adc_start = 1, ??? a/d a?? ad_finished = 0; while ( ad_finished == 0 ) // ?y a/d a???? { ad_finished = (adc_contr & 0x10); //0001,0000, adc_flag ==1 2a? a/d a????? } adc_contr &= 0xf7; // 1111,0111 ? adc_start = 0, 1?? a/d a?? , return (adc_data); // ?? a/d a???1? } void main() { initiate_rs232(); p1 = p1 | 0x63; // 0 11 0,00 11 , a???a a/d a??? p1.x ? , ??a?? p1_adc_en = 0x63; //0 11 0,00 11 , p1 ? p1.0,p1.1,p1.5,p1.6 ???a a/d a?????? // ???a p1.0,p1.1,p1.5,p1.6 ?2??-? while(1) { send_byte(get_ad_result(0)); //p1.0 ?a a/d ???? , 2a?2??1? delay(0x200); send_byte(get_ad_result(1)); //p1.1 ?a a/d ???? , 2a?2??1? delay(0x200); send_byte(get_ad_result(5)); //p1.5 ?a a/d ???? , 2a?2??1? delay(0x200); send_byte(get_ad_result(6)); //p1.6 ?a a/d ???? , 2a?2??1? delay(0x200); send_byte(0); // ?e?? 4 ?? 00h, ?1?2?3???? send_byte(0); send_byte(0); send_byte(0); delay(0x200); // ? delay(0x200); delay(0x200); delay(0x200); delay(0x200); delay(0x200); } } o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 34
35 stc89c51 rc / rd+ ??e ???? isp (diy) eo? ???|?3e?? isp y??????? ( isp space ) , ? isp ????? mcu 2?e iap 1|? ap space ?? 0 k 1 k ( ?? iap ) 2 k ( ?? iap ) 4 k ( ?? iap ) stc89c51rc 0000h - 0fffh ??? ?? ???1 isp/ iap 2 3800h - 3bffh 3400h - 3bffh 2c00h - 3bffh stc89le51rc 0000h - 0fffh 3800h - 3bffh 3400h - 3bffh 2c00h - 3bffh stc89c52rc 0000h - 1fffh 3800h - 3bffh 3400h - 3bffh 2c00h - 3bffh stc89le52rc 0000h - 1fffh 3800h - 3bffh 3400h - 3bffh 2c00h - 3bffh eo? ???|?3e?? isp y??????? ( isp space ) , ? isp ????? mcu 2?e iap 1|? ap space ?? 0 k 1 k ( ?? iap ) 2 k ( ?? iap ) 4 k ( ?? iap ) STC89C53RC 0000h - 3bffh ????????1 isp / iap 2 stc89le53rc 0000h - 3bffh STC89C53RC 0000h - 37ffh 3800h - 3bffh stc89le53rc 0000h - 37ffh 3800h - 3bffh STC89C53RC 0000h - 33ffh 3400h - 3bffh stc89le53rc 0000h - 33ffh 3400h - 3bffh STC89C53RC 0000h - 2bffh 2c00h - 3bffh stc89le53rc 0000h - 2bffh 2c00h - 3bffh eo? ???|?3e?? isp y??????? ( isp space ) , ? isp ????? mcu 2?e iap 1|? ap space ?? 0 k 1 k ( ?? iap ) 2 k ( ?? iap ) 4 k ( ?? iap ) stc89c54rd+ 0000h - 3fffh ??? ?? ???1 isp/ iap 2 f800h - fbffh f400h - fbffh ec00h - fbffh stc89le54rd+ 0000h - 3fffh f800h - fbffh f400h - fbffh ec00h - fbffh stc89c58rd+ 0000h - 7fffh f800h - fbffh f400h - fbffh ec00h - fbffh stc89le58rd+ 0000h - 7fffh f800h - fbffh f400h - fbffh ec00h - fbffh eo? ???|?3e?? isp y??????? ( isp space ) , ? isp ????? mcu 2?e iap 1|? ap space ?? 0 k 1 k ( ?? iap ) 2 k ( ?? iap ) 4 k ( ?? iap ) stc89c516rd+ 0000h - fbffh ????????1 isp / iap 2 stc89le516rd+ 0000h - fbffh stc89c516rd+ 0000h - f7ffh f800h - fbffh stc89le516rd+ 0000h - f7ffh f800h - fbffh stc89c516rd+ 0000h - f3ffh f400h - fbffh stc89le516rd+ 0000h - f3ffh f400h - fbffh stc89c516rd+ 0000h - ebffh ec00h - fbffh stc89le516rd+ 0000h - ebffh ec00h - fbffh ??o??e??o? isp, e??o? ??3y?? 3e?1e??a?e?? , ??1???2?a?e???? ??3e??????o isp 3e?????? : o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) ??a? c:
36 ??e??o? isp ?1?ea?1?? , ??1???2?a?e???? -----stc89c51rc / rd+ ??e?????31?? ? 200 ?a ? stc89c51rc / rd+ ??e????3?3?????1?e isp y?a?3e ? ????a??? ???3e ? ???e?? p3.0/p3.1 ?-1y rs-232 a????????? rs-232 ?? ? 1y stc-isp ?a???t??a??3e?a?????? ? ?1?2?? stc ? isp 3e??ae??o? isp 3e ? ?ea stc89c51rc / rd+ ??e?????31?? ? 2??????? isp 3e?a?????? ??2? , ?t1? stc mcu programmer 31?? ? ??? o ???|?3eo isp 3e??e?a? ? ?????o3e? isp ???a???ee ? ? y???????2??? ?t ? ?o3???? 0 ?a? ? ?? ?o3????????|?3e ?? ? ????? isp ????? y ? ??? isp ?????????a ? ? 2????o3????? isp 3 e , ??????3e ? ? ? isp ??????? 0/1k/2k/4k ?? ? ?a?3e 2????? isp 3e? isp ?? ? ????? isp 3e????? ? ??a? ? ???|?3e ????o? isp 3e?a?? ? ?1??? isp ???3??3e?? ? ??a??????3 data flash y?y???? ? ? stc89c516rd+,4k isp ?????3e1? ? ?a 59k ? eeprom ? ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e )
37 ???t o ???|?3eo isp 3e??e?a? ? ?????o3e????|?3e?? ?a???ee ( ????????? isp/iap ???te ? ????3 ?t isp/iap ?????1? ? 1? ??e??o? isp 3e??te ) ? ? y???????2??? ?t ? ?o3???? 0 ?a? ? ?? ?o3????????|?3e y ? ??? isp ?????????a ? ? 2????o3???????? ?o? isp 3e , ????? ?3e ?? ? ????????|?3 e????? , ????e?????t isp/iap 1|? ? 1|??3 ? isp ????? ? ?? ? ?a?3e o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) ??1y?????? ? ????1y isp ?????a 1k/2k/4k, ?????? isp ???????????? ? ??ea?a?3e ? a???????e???23y ? ?? ( ??????1ao ) ? ??? ? ????3e ? 2??e?? ? 23y????e???o ? ??ea?e?3?e????y??? ? ?????o2??e ?
o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 38 www.mcu-memory.com ????2?1??????1?????? isp-demo ?t (*.hex), ? ????? stc ?3????? ? ? stc-isp.exe ?t?e???? ? isp demo ? 1|????a stc89c51rc stc89le51rc 115,200 bps 57,600 bps 38,400 bps 19,200 bps 9,600 bps 4,800 bps 2,400 bps 1,200 bps 40mhz 51_40m_ 115200.hex 51_40m_ 57600.hex 51_40m_ 38400.hex 51_40m_ 19200.hex 51_40m_ 9600.hex 51_40m_ 4800.hex 51_40m_ 2400.hex 51_40m_ 1200.hex 33mhz 51_33m_ 115200.hex 51_33m_ 57600.hex 51_33m_ 38400.hex 51_33m_ 19200.hex 51_33m_ 9600.hex 51_33m_ 4800.hex 51_33m_ 2400.hex 51_33m_ 1200.hex 27mhz 51_27m_ 115200.hex 51_27m_ 57600.hex 51_27m_ 38400.hex 51_27m_ 19200.hex 51_27m_ 9600.hex 51_27m_ 4800.hex 51_27m_ 2400.hex 51_27m_ 1200.hex 24mhz 51_24m_ 115200.hex 51_24m_ 57600.hex 51_24m_ 38400.hex 51_24m_ 19200.hex 51_24m_ 9600.hex 51_24m_ 4800.hex 51_24m_ 2400.hex 51_24m_ 1200.hex 22.1184mhz 51_22.1184m_ 115200.hex 51_22.1184m_ 57600.hex 51_22.1184m_ 38400.hex 51_22.1184m_ 19200.hex 51_22.1184m_ 9600.hex 51_22.1184m_ 4800.hex 51_22.1184m_ 2400.hex 51_22.1184m_ 1200.hex 20mhz 51_20m_ 115200.hex 51_20m_ 57600.hex 51_20m_ 38400.hex 51_20m_ 19200.hex 51_20m_ 9600.hex 51_20m_ 4800.hex 51_20m_ 2400.hex 51_20m_ 1200.hex 18.432mhz 51_18.432m_ 115200.hex 51_18.432m_ 57600.hex 51_18.432m_ 38400.hex 51_18.432m_ 19200.hex 51_18.432m_ 9600.hex 51_18.432m_ 4800.hex 51_18.432m_ 2400.hex 51_18.432m_ 1200.hex 12mhz 51_12m_ 115200.hex 51_12m_ 57600.hex 51_12m_ 38400.hex 51_12m_ 19200.hex 51_12m_ 9600.hex 51_12m_ 4800.hex 51_12m_ 2400.hex 51_12m_ 1200.hex 11.0592mhz 51_11.0592m_ 115200.hex 51_11.0592m_ 57600.hex 51_11.0592m_ 38400.hex 51_11.0592m_ 19200.hex 51_11.0592m_ 9600.hex 51_11.0592m_ 4800.hex 51_11.0592m_ 2400.hex 51_11.0592m_ 1200.hex ( ?? o 3?3???????????a?e?? isp ???t ? 2?1y????e-2?1??a ) ??a? d: isp demo( ?y?? ) ?t (*.hex) ??e?e- stc89c52rc stc89le52rc 115,200 bps 57,600 bps 38,400 bps 19,200 bps 9,600 bps 4,800 bps 2,400 bps 1,200 bps 40mhz 52_40m_ 115200.hex 52_40m_ 57600.hex 52_40m_ 38400.hex 52_40m_ 19200.hex 52_40m_ 9600.hex 52_40m_ 4800.hex 52_40m_ 2400.hex 52_40m_ 1200.hex 33mhz 52_33m_ 115200.hex 52_33m_ 57600.hex 52_33m_ 38400.hex 52_33m_ 19200.hex 52_33m_ 9600.hex 52_33m_ 4800.hex 52_33m_ 2400.hex 52_33m_ 1200.hex 27mhz 52_27m_ 115200.hex 52_27m_ 57600.hex 52_27m_ 38400.hex 52_27m_ 19200.hex 52_27m_ 9600.hex 52_27m_ 4800.hex 52_27m_ 2400.hex 52_27m_ 1200.hex 24mhz 52_24m_ 115200.hex 52_24m_ 57600.hex 52_24m_ 38400.hex 52_24m_ 19200.hex 52_24m_ 9600.hex 52_24m_ 4800.hex 52_24m_ 2400.hex 52_24m_ 1200.hex 22.1184mhz 52_22.1184m_ 115200.hex 52_22.1184m_ 57600.hex 52_22.1184m_ 38400.hex 52_22.1184m_ 19200.hex 52_22.1184m_ 9600.hex 52_22.1184m_ 4800.hex 52_22.1184m_ 2400.hex 52_22.1184m_ 1200.hex 20mhz 52_20m_ 115200.hex 52_20m_ 57600.hex 52_20m_ 38400.hex 52_20m_ 19200.hex 52_20m_ 9600.hex 52_20m_ 4800.hex 52_20m_ 2400.hex 52_20m_ 1200.hex 18.432mhz 52_18.432m_ 115200.hex 52_18.432m_ 57600.hex 52_18.432m_ 38400.hex 52_18.432m_ 19200.hex 52_18.432m_ 9600.hex 52_18.432m_ 4800.hex 52_18.432m_ 2400.hex 52_18.432m_ 1200.hex 12mhz 52_12m_ 115200.hex 52_12m_ 57600.hex 52_12m_ 38400.hex 52_12m_ 19200.hex 52_12m_ 9600.hex 52_12m_ 4800.hex 52_12m_ 2400.hex 52_12m_ 1200.hex 11.0592mhz 52_11.0592m_ 115200.hex 52_11.0592m_ 57600.hex 52_11.0592m_ 38400.hex 52_11.0592m_ 19200.hex 52_11.0592m_ 9600.hex 52_11.0592m_ 4800.hex 52_11.0592m_ 2400.hex 52_11.0592m_ 1200.hex ??3e?? ? ??? stc ?3??t?????????? isp 3e1|? , ??????e? ? 8 ??y?y?? ? 1 ???1?? ? ???a??y????1? ? ??????o??2?a ?
; stc isp demo 3e??e- ;stc89le51rc, stc89le52rc, stc89le53rc, stc89le54rd+, stc89le58rd+, stc89le516rd+ ;stc89c51rc, stc89c52rc, STC89C53RC, stc89c54rd+, stc89c58rd+, stc89c516rd+ ; ;1. 1|? ; stc isp demo 3e?1??2?a????? (pc ? ) ?? ? ?????? ; ??3e?a??y?y?a?? mcu ????|?3e???e ( ??a?3? ap ?? ) o ; data ?? ? ; ;1.1 |??? ; ?e-??? stc89c/le5xrc o stc89c/le5xxrd+ ??e???? ? ;1.2 1?? ; 1) ?? stc isp demo 3e?a?? mcu ? isp ?? , 2l???a?????o? ; isp ???a???ee ? ; 2) ???ee????3e ? 2?????????? ? ?o?? mcu ?? ? ; 3) mcu ???????o?????|e?? ? ???|e? 3 ??????31| ? ; 4) ????????e?? ? 3?a??1 ? ; 5) ?a??? ? pc ??e???? ? mcu ????e??? ap 3e??ee ? ; ; stc-isp (2.9 beta3 ???? ) ?a???t1?? stc isp demo 3e????? ; 1|? ? ???t?? www.mcu-memory.com ????a?? ? ; mcu ?????o?2a????e????j?????? , ???e????? ; ?e??? ap 3e??ee ? 2??2??? stc ?a???t?e " ??????a?? " 1|? , ; ?|?3e????e??? isp ??ee?a?? ? ??2???????a????? ( ???? ) ; ??? isp 3e ? ; ;2. ????? ? ; ?e???? pc ???? ? ; ;2.1 pc ???????? ? ; 5ah 0101,1010 ?e??? 1 ---- ------ ; a5h 1010,0101 ?e??? 2 | | ; len_h ??3????? | | ; len_l ??3???? | ; command ??? ??e?o?? | ; data 0 y?y??? 1 ?? ; .. | ??3??? ; .. | ; .. | | ; data n-1 y?y??? n ?? ---- | ; check_sum_high ??e?o???? | ; chenk_sum_low ??e?o??? | ; 16h ???? ---------------------------- o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 39
2.3 ??3? ? ; ??3?????e??? 1 ????? ? ; ;2.4 e?o ? ; ??e??? 1 ?a??e?o????e????? ? ; ;3.0 pc ??? mcu |e ; ?? ???a? ; ; ??? b0h 1011, 0000 ; ????e?????3e b1h 1011, 0001 ; 23y ap ? data flash b2h 1011, 0010 ; e?y?y? ap ? data flash b3h 1011, 0011 ; ?23y???e?y?y b4h 1011, 0100 ; ?1?t??o? b5h 1011, 0101 ; ;3.1 ????? ? ; ;3.1.1 pc ?????? ? ; eo? ?y ; 0 5ah ?e??? 1 ; 1 a5h ?e??? 2 ; 2 00h ??3????? ; 3 08h ??3???? ; 4 b0h ???????? ; 5 01h e?o???? (5ah + a5h + 00h + 08h + b0h = 01b7h) ; 6 b7h e?o??? ; 7 16h ???? ; ;3.1.2 mcu ?????|e?? ? ; eo? ?y ; 0 5ah ?e??? 1 ; 1 a5h ?e??? 2 ; 2 00h ??3????? ; 3 08h ??3???? ; 4 b0h ???|e????? ; 5 01h e?o???? (5ah + a5h + 00h + 08h + b0h = 01b7h) ; 6 b7h e?o??? ; 7 16h ???? ; ;3.2 ????ee isp 3e , ????e?????3e ? ; isp 3e????o?????? ? ?e?????3e??ee ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 40
;3.2 ????ee isp 3e , ????e?????3e ? ; isp 3e????o?????? ? ?e?????3e??ee ? ;3.2.1 pc ?? ; eo? ?y ; 0 5ah ?e??? 1 ; 1 a5h ?e??? 2 ; 2 00h ??3????? ; 3 08h ??3???? ; 4 b1h ????e?????3e??? ; 5 01h e?o???? (5ah + a5h + 00h + 08h + b1h = 01b8h) ; 6 b8h e?o??? ; 7 16h ???? ; ;3.2.2 mcu |e o ; ? " ???|e?? " |e , ?? 3.1.2 mcu ???|e?? ? ; ;3.3 23y|?3e??oy?y flash ?? ;3.3.1 pc ?? o ; eo? ?y ; 0 5ah ?e??? 1 ; 1 a5h ?e??? 2 ; 2 00h ??3????? ; 3 08h ??3???? ; 4 b2h 23y|?3e????? ; 5 01h e?o???? (5ah + a5h + 00h + 08h + b2h = 01b9h) ; 6 b9h e?o??? ; 7 16h ???? ; ;3.3.2 mcu |e o ; ? " ???|e?? " |e , ?? 3.1.2 mcu ???|e?? ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 41
;3.4 e?y?y? flash ap ?? ;3.4.1 pc ?? o ; eo? ?y ; 0 5ah ?e??? 1 ; 1 a5h ?e??? 2 ; 2 00h ??3????? ; 3 xxh ??3???? ; 4 b3h e?y?y? flash ??? ; 5 00h ???? ; 6 00h ???? ; 7 address_h ???????? ; 8 address_l ??????? ; 9 00h y?y?3????? ? ; 10 xxh y?y?3???? ; ?????e 128 ?? ? e???? 512 ?????e?e ; ? 4 ??y?y ? ?3??????e?? ? e?23y????o ; ??e ? ; 11 data 1 y?y?? 1 ?? ; ; .. .. ; ; xx data n y?y?? n ?? ; xx xxh e?o???? ; xx xxh e?o??? ; xx 16h ??? ; ;3.4.2 mcu |e o ; eo? ?y ; 0 5ah ?e??? 1 ; 1 a5h ?e??? 2 ; 2 00h ??3????? ; 3 0ah ??3???? ; 4 b3h e?y?y? flash ??? ; 5 xxh y?y??e?o???? ? ?? 3.4.3 e?y?y? flash ap ??o?e? ; 6 xxh y?y??e?o??? ? ?? 3.4.3 e?y?y? flash ap ??o?e? ; 7 xxh ??e?o???? ; 8 xxh ??e?o??? ; 9 16h ???? ; ;3.4.3 e?y?y? flash ap ??o?e? o ; mcu ???????|?3eoy?ye?? flash o???????e??3? ? ???????? ; ??o ? ??o?e??? 2.4.1 ?????oy?y?3???? (pc ??? 7,8,9,10 ?? ) ; ??o?a 2 ???? ? ?? pc 1????e??e?y?y?y?? ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 42
;3.5 23y??o?e?y?y? flash ap ?? ; 3y?????a b4h a ? ????e?y?y? flash ap ?????a ? ; ;3.6 ? mcu ?o? ? 1?t??o??? ? ;3.6.1 pc ?? o ; eo? ?y ; 0 5ah ?e??? 1 ; 1 a5h ?e??? 2 ; 2 00h ??3????? ; 3 08h ??3???? ; 4 b5h ? mcu ?o? ? 1?t??o???? ; 5 01h ??e?o???? ; 6 f9h ??e?o??? ; 7 16h ???? ; ;3.6.2 mcu |e o ; eo? ?y ; 0 5ah ?e??? 1 ; 1 a5h ?e??? 2 ; 2 00h ??3????? ; 3 0ch ??3???? ; 4 b5h ? mcu ?o? ? 1?t??o???? ; 5 firmware_version 1?t??o? ; 6 mcu_type_high mcu ?o????? ; 7 mcu_type_low mcu ?o???? ; 8 xxh ???? ; 9 xxh ??e?o???? ; 10 xxh ??e?o??? ; 11 16h ???? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 43
o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) ??a? e: ?o?????ee?e????a?? , ?ta??????? ????a???- o stc-isp.exe ?t 1.stc-isp.exe ?t , ?????? ? uart/rs-232 ???????3e??? 2?a : 38400 bps, 19200bps, 9600bps ? 4800bps, 2400bps, 1200bps ? ????e??? : ?t ? ??e? ? ??e? y?y?????? o 8 ?? ? 7 ?? ? 6 ?? ? 5 ?? ? ? ?1?????? o 1 ?? , 1.5 ?? ? 2 ?? ? ? 2. e???3e??????????????a????????e?? (hex) ??????????????? ? 2?2?? ? stc-isp.exe ?| ? ?y?a?????? 12h,34h,56h,78h,0abh,0cdh,0efh, 12h,34h,56h,78h,0abh,0cdh,0efh 3. ??3e?e|????????a???? ? ???? ? ??????3 isp 3e???3e 4. ????o?e??????a???????3e?????a???? stc ?????2? o stc89c51rc,stc89c52rc,STC89C53RC,stc89c54rd+,stc89c58rd+,stc89c516rd+ stc89le52rc,stc89le53rc,stc89le54rd+,stc89le58rd+,stc89le516rd+ ?a???eo?? stc ???????e? ? 2?? / ??ee?e / ????a??1|? ? 6. ??a??o?eo? ? ??a???t ..., ?????a???e???1????? ? ???? ? ? ? ?? ? stc-isp.exe ? ? ? ? ? ?????a????o ? ??a ????????a???? ? ??2? 1??????3e?????? e ? 2?1y?a??a??ee????e ea??? 1s ??? ? ?????| ?3ea? 1s ? ????3 isp 3e?2???a???? ? ????? ???|?3e ? 7. ??3e ? ?1??????? ?e???? ? ????a???????ea? ????t ? ? ?a??????et???-?? ?t2?ea? / ??o3? *. hex,*.bin ???t?2?a???1 ??? ? 22?a? ? 44
??a? f: keil c51 ???????3??t?o????a?3? 1. ? ? project ? 2???e???? ? options for target ? 2. ? ? options for target ? ?e???? ? c51 ? 3. ?????????e? ? 9 ????3e 4. ??ea?3e?? ? o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) 45
o????? o www.mcu-memory.com mobile:13922805190( |?? ) tel:0755-82948409 fax: 0755-82944243 o????? : ????? / ??1?| www.mcu-memory.com stc ????e 8051 ?????e?????? (rc/rd+ ??e ) ??a? g:( e??? stc89c51rc/rd+ ??e?????a???|??? ) stc89c51 rc / rd+ ??e ???? ?a???e??a ???y?? cpu ?y?? ( ???? ) wt2 wt1 wt0 read program sector erase recommended system clock 0 1 1 6 30 5471 5mhz 0 1 0 11 60 10942 10mhz 0 0 1 22 120 21885 20mhz 0 0 0 43 240 43769 40mhz 1. ?? flash ? iap ??? / ??3 / ??23y?y???? 2. 3e? isp ??????? ap ????ee iap ? / 3 / ??23y 3. 3e??? ap ??2???? isp ????ee iap 2 ? 5. ?? isp ?????? ap ?? ? 2?? ap ?????? isp ?? ? mnemonic add name 7 6 5 4 3 2 1 0 reset value isp_data e2h isp/iap flash data register 1111,1111 isp_addrh e3h isp/iap flash address high 0000,0000 isp_addrl e4h isp/iap flash address low 0000,0000 isp_cmd e5h isp/iap flash command register - - - - - ms2 ms1 ms0 xxxx,x000 isp_trig e6h isp/iap flash command trigger xxxx,xxxx isp_contr e7h isp/iap control register ispen swbs swrst - - wt2 wt1 wt0 000x,x000 ; ????|?3e?? (ap ?? ) ?t???2?e??? isp 3e???a??ee3e mov isp_contr, #01100000b ;swbs = 1( ???? isp ?? ), swrst = 1( ??? ) ; ? isp 3e???t???2?e??????|?3e?? (ap ?? ) ?a??ee3e mov isp_contr, #00100000b ;swbs = 0( ???? ap ?? ), swrst = 1( ??? ) ???o?e???????? ? ????????e?? sfr ?? ? ?? ram ? data flash ?e ? ?2? stc89c58rd+ ?? ? stc89c58rd+50-c-pi: ? 32k ????3e?? ? ???? 0/1/2/4k ????3 isp ?? ? ??e???? 1/2/4k ?? isp ?? , 2?????????? isp ????? ? ??? iap 1|?2??e? 512byte/sector ? 27k ??y?y flash ?? 4. 3e? isp/ap ????? data flash ????ee iap 2 ? 1|??1 o 5.5v - 3.4v, 2?a1y? ? ??12?? ? 5v ? 2 ?? 1n4001 ? 3.6v


▲Up To Search▲   

 
Price & Availability of STC89C53RC

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X